Skip to content
ℕ𝔸𝕊𝔸™ℕ𝕒𝕤𝕒𝕣𝕖™𝕊𝕡𝕒𝕔𝕖𝕏™ https://nasa.re/

Nasare™🚀

フレッシュ スペース & テクノロジー NEWS📢

  • About 𝒩𝒶𝓈𝒶𝓇𝑒™
  • SMART Tools
  • SMART AI
    • Kubeshark PCAP Export/Import
    • Coaching engineering managers to employ on organizational issues
    • Zelda: Hyperlink’s Awakening game engine documentation (2021)
    • Commercial Resupply Services-CRS
  • Show HN
    • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
    • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
    • 主な BGP 増加をレジデンス Windows デスクトップに追加する
    • ガジェットの複雑さが増し、余分な IP の再利用が促進される
    • 新しい GitHub CLI 拡張インストゥルメント
    • Kubernetes を 7,500 ノードにスケーリング (2021 年)
    • Wander アプリ用の軽量なオンザフリット構成ライブラリ
    • Ask HN
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Brand HN: Motion photographs Watchlist Chrome Extension
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Level to HN: A corpulent game of snake encoded in a url
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
    • Show HN
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Android phones will at the moment obtain iPhone-love SOS satellite texting
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Level to HN: A corpulent game of snake encoded in a url
    • Brand HN: Motion photographs Watchlist Chrome Extension
    • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
    • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
    • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
    • Tag HN: Using Key-Value Retail outlets in Serverless Codehooks.io Applications
    • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
    • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
    • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
    • Brand HN: Motion photographs Watchlist Chrome Extension
    • Level to HN: A corpulent game of snake encoded in a url
    • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
    • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
    • Speak HN: What sub $200 product improved HN readers’ 2022
    • Level to HN: An initiate source tool to generate Jet Engine compressors
    • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
    • Insist HN: Ov – characteristic smartly off terminal pager
    • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
    • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
    • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
    • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
  • A Computer virus and a Dilemma
    • OCIS – OwnCloud Countless Scale
    • A Princeton student built an app which is ready to detect if ChatGPT wrote an essay
    • GitHub Is Sued, and We Would possibly perhaps Learn Something About Creative Commons Licensing
    • Adobe’s Command material analysis can be using photos/videos to narrate AI w/o consent
    • Ultralearning a.k.a. how I learned to code
    • Automatic1111 is assist on GitHub after taking away Embedding Links
    • Where Your Sides Came From
    • What Is a Pig Butchering Rip-off?
    • Submit-processing is ruining iPhone photos
    • Clos Topologies and Centralized Retain a watch on in Google’s Datacenter Community
    • Miller Engineering DS-1 House Planetarium
    • Gimel Studio: Non-harmful, 2D image editor
  • Technology
    • Miller Engineering DS-1 House Planetarium
    • Apple Doctors: to construct it as a file it is advisable to electronic mail it to your self
    • The Air India passenger who urinated on a girl has been fired by Wells Fargo
    • The Filesystem Hierarchy Usual Comes to Guix Containers
    • Sooner than it sued Google for copying from Java, Oracle changed into as soon as copying IBM’s SQL (2020)
    • The i3-gaps mission has been merged with i3
    • Making an Alphorn from Scratch
    • Apple: Braille Individual Guides
    • MotherDuck Is a Original Thought
    • The class of CGI and simple make
    • Like a mercurial tour of DragonFly BSD 6.4?
    • computer science
    • AI
    • Artificial intelligence
    • Technology
    • Ai
    • Apple
    • digital
  • TOP HN
    • anti-Mastodon
    • TOP HN
      • Show HN
      • Ask HN
      • coding
      • ガジェットの複雑さが増し、余分な IP の再利用が促進される
      • 新しい GitHub CLI 拡張インストゥルメント
      • Kubernetes を 7,500 ノードにスケーリング (2021 年)
      • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
      • Wander アプリ用の軽量なオンザフリット構成ライブラリ
      • Artificial intelligence
      • 主な BGP 増加をレジデンス Windows デスクトップに追加する
      • Technology
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
      • Brand HN: Motion photographs Watchlist Chrome Extension
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
      • Kubernetes を 7,500 ノードにスケーリング (2021 年)
      • Level to HN: A corpulent game of snake encoded in a url
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Wander アプリ用の軽量なオンザフリット構成ライブラリ
      • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
      • ガジェットの複雑さが増し、余分な IP の再利用が促進される
      • 主な BGP 増加をレジデンス Windows デスクトップに追加する
      • 新しい GitHub CLI 拡張インストゥルメント
      • ロンドンで*ダウン*を継続的に見つめる: Pavement Oddities
      • 報酬 HN: C の 30 行でスピンロック
      • FAA の NOTAM とは何ですか? 航空専門家が機械の仕組みを説明
      • ナノGPT
      • 1 ビット LCD のグレースケール (2022)
      • The Muse (YC W12) は FP&A のシニア ディレクターを採用しています
      • Zen (YC S21) はグロース エンジニアを採用しています
      • Tall Inquire of (YC W21) が B2B 回顧録の幹部を採用
      • Actiondesk (YC S19) は、プロダクト ドレスメーカーを採用しています (4-6 か月の契約)
      • Oven (YC S19) は、Bun を作成するために C/C++ または Zig エンジニアを採用しています。
      • WInd3x, the iPod Bootrom exploit 10 years too unhurried
      • Sign HN: FASTA recordsdata を操作するための FUSE モジュール
      • HN を指します: Socketify.py: PyPy3 および Python3 用の Http/Https および WebSocket サーバー
      • Wage Development Continues to Gradual in the UK and Euro House
      • Stage Supervisor for the unimpressed: 1 Getting started
      • First public free up of Pushup: a brand unique compiler for making net apps in Trip
      • Fixing Cart-Pole Swingup with a Hierarchical Controller
      • Flight Testing the Touchdown Radar for Mars Science Laboratory 2011-06-21T17:36:36Z
      • Flightcontrol (YC W22) is hiring first Developer Recommend
      • Flying boats and other tech for cleaner shipping
      • Four Finalist Touchdown Location Candidates for Mars Science Laboratory 2008-11-19T16:21:01Z
      • France’s prized nuclear sector stalled in Europe’s hour of want
      • French startup unveils new residential thermo-acoustic warmth pump
      • FTC Cracks Down on Firms That Impose Contaminated Noncompete Restrictions
      • FTX’s Aged Prime Lawyer Aided US Authorities in Bankman-Fried Case
      • FY18 NASA lėšų šnypštimas 2017-05-22T00:00:00Z
      • G-3PO: A protocol droid for Ghidra, or GPT-3 for reverse-engineering
      • Gail.com FAQ
      • Gemini-Titan (GT)-6 – Gemini 6 of 7 – 지역 사진 – 외부 지역 1965-12-15T00:00:00Z
      • Geoffrey Hinton Publishes Original Deep Learning Algorithm
      • Germany warns: AI fingers flee already underway (2021)
      • Gimel Studio: Non-harmful, 2D image editor
      • GitHub Availability File
      • GitHub Is Sued, and We Would possibly perhaps Learn Something About Creative Commons Licensing
      • Google needs RISC-V to be a “tier-1” Android architecture
      • Google researcher, lengthy out of math, cracks devilish dispute about gadgets
      • Google start sourced CDC File Transfer from the ashes of Stadia
      • GRC-2003-C-02097 2004-05-01T00:00:00Z
      • GRC-2013-C-05246 2009-11-26T00:00:00Z
      • Hello world!
      • Highlights of Science Launching on SpaceX CRS-15 2018-06-24T00:00:00Z
      • Hilf Al-Fudul
      • HiOperator (YC S16) Is Hiring VP of Engineering
      • HN を指します: Socketify.py: PyPy3 および Python3 用の Http/Https および WebSocket サーバー
      • How kind I blueprint a pair of buttocks?
      • How will the haj switch as international temperatures upward thrust?
      • Human gene linked to bigger brains turned into as soon as born from apparently pointless DNA
      • Hundreds of scientists publish a paper every 5 days
      • In Favor of Friction and Flexibility
      • Indicate HN: Klotho – Change into straightforward code into cloud native code
      • Indoor farming isn’t exact for the smartly off
      • Iranian assault drone came across to have parts from more than a dozen US companies
      • Israeli researcher experiences leak of 235M Twitter-linked e-mail addresses
      • Jam Stations in Low Earth Orbit
      • Jazz Is Freedom
      • JPL-20171102-TECHf-0001-ドローントリップ 人間vs機械 2017-11-17T00:00:00Z
      • JPL에서 NASA의 MSI 콘도미니엄 액셀러레이터 2022-08-25T00:00:00Z
      • JPSO extinct facial recognition abilities to arrest a man. The tech modified into once defective
      • jsc2017e136097 – 12 月 4 日,俄罗斯联邦地区公司 (Roscosmos) 的远征 54-55 号机组人员 Anton Shkaplerov 在俄罗斯 Principal person City 的加加林宇航员训练中心上向整洁的祝福者挥手致意,当时他登上了前往附近的 Chkalovsky Ai 的公共汽车2017-12-04T00:00:00Z
      • Kemble’s Cascade of Stars
      • Kepler-90 マシン (アーティストの考え) 2017-12-14T00:00:00Z
      • Koichi Wakata SpaceX 코칭 2022-06-27T00:00:00Z
      • KSC and Proud to Be Heart-Wide Diversity Tournament 2019-08-20T00:00:00Z
      • KSC ir „Proud to Be Center“ įvairovės turnyras 2019-08-20T00:00:00Z
      • AI
      • Artificial intelligence
      • Auto-Generate
      • anti-Mastodon
      • Awesome
      • BioSentinel
      • CATEGORIES
      • DC
      • Dione
      • Diversity
      • drone racing
      • drones
      • Dulles
      • education
      • Event
      • filmstock
      • Goddard
      • AI
      • Ask HN
      • autonomous
      • coding
      • computer science
      • Clusters
      • Artificial intelligence
        • Ai
        • Apple
        • Tesla
        • digital
        • MESSENGER
        • Device
        • Charts
        • change
        • Shows
        • fraud
        • Former
        • fucking
        • purge
        • Works
        • entering
        • Databases
        • Review
        • Strangely
        • Instinct
        • staff
        • Salesforce
        • intern
        • Involuntary
        • promise
        • Twilio’s
        • nisv live
        • attack
        • Iranian
        • France’s
        • prized
        • infrastructure
        • Debian-based
        • nisv s02 ep03
        • siduction
        • Awesome
        • Calculate
        • Beautiful
        • Linux
        • Start
        • dollar
        • Messier
        • Daughters
        • ‘Breakthrough’
        • obesity
        • Al-Fudul
        • sixty years
        • PyTorch
        • discloses
        • Ancient
        • Stone
        • Popup
        • design
        • public
        • expanding
        • cloud
        • forest
        • startup
        • French
        • batteries
        • fleas
        • spotted
        • Petals
        • language
        • Habitual
        • checking
        • GitHub
        • Availability
        • layers
        • inconsistencies
        • Affair
        • Quasi-War
        • Sergey
        • Irate
        • bestseller
        • necessarily
        • Scientists
        • Titan
        • twitch
        • FGS/NIRISS – Fine Guidance Sensor/Near InfraRed Imager and Slitless Spectrograph
        • infrared
        • ISIM – Integrated Science Instrument Module
        • JHU – Johns Hopkins University
        • JWST – James Webb Space Telescope
        • JWST – James Webb Space Telescope
        • absolute zero
        • Big Bang
        • Peace
        • Studio
        • Making
        • project
        • -gaps
        • warns
        • Germany
        • Braille
        • MotherDuck
        • prototype
        • Challenges
        • Infinite
        • OwnCloud
        • Novel
        • Before
        • copying
        • California
        • getting
        • States
        • Criminal
        • Brother
        • Released
        • Method
        • owners
        • ‘richsession’
        • email
        • Elements
        • Where
        • passenger
        • Hierarchy
        • Filesystem
        • economic
        • Crew Dragon
        • Bridenstine
        • Scientific
        • Heaviosity
        • Patterns
        • Unexpected
        • minimalist
        • Ecode
        • Alpha
        • Wolfram
        • Tailwind
        • HiOperator
        • Klotho
        • TEAMS
        • ROBOTICS
        • Antelope
        • Sponsors
        • Ellen Gertsen
        • Transform
        • Flightcontrol
        • subscriptions
        • Internet
        • Theory-building
        • you’re
        • looking
        • Transfer
        • error’
        • Tails
        • migrate
        • Building
        • Bitmovin
        • Remote
        • PhotoRoom
        • Company
        • Taking
        • Ribbon
        • BibDesk
        • Android
        • profilers
        • phones
        • modern
        • Mastercard
        • private
        • We’ve
        • reportedly
        • Microsoft
        • Artsy
        • trades
        • skilled
        • Polygon
        • Flying
        • Princeton
        • Codemods
        • Coaching
        • UK’s
        • popping
        • sourced
        • Wikipedia
        • admin
        • Indoor
        • quick
        • Mysterious
        • Spotify
        • Fancy
        • Spotify
        • Weird
        • mail-order
        • Recipients
        • computer
        • optics
        • partnership
        • commercial
        • telemetry
        • Crisis
        • billionaire
        • Party
        • Onelab
        • Faster
        • general
        • Adobe’s
        • database
        • FinanceDatabase
        • Numerical
        • Freedom
        • concrete
        • Stacks
        • computer science
        • NASA
    • Show HN
    • Ask HN
    • Technology
    • computer science
    • coding
    • Clusters
    • AI
    • drones
    • autonomous
    • Auto-Generate
    • Ask HN
    • Show HN
    • The SMART Science™
    • google
  • CRYPTO
    • Blockchain
    • farming
    • Billionaires
    • FTX’s
    • FinanceDatabase: A database of 300.000 symbols (ETFs, Currencies, Crypto)
  • Artificial intelligence
  • Toggle search form
  • Mutter HN: LazyShell – GPT を使用した Zsh のオートコンプリート
    Mutter HN: LazyShell – GPT を使用した Zsh のオートコンプリート Autocomplete
  • 地上VLF送信機からのウィスラー波のロケット排気駆動増幅
    地上VLF送信機からのウィスラー波のロケット排気駆動増幅 anti-Mastodon
  • नासा का खुलासा 2021-06-02T00:00:00Z
    नासा का खुलासा 2021-06-02T00:00:00Z Ask HN
  • 色あせたタイプライターに GPT-3 を使用するヒントを与える
    色あせたタイプライターに GPT-3 を使用するヒントを与える anti-Mastodon
  • This image was as soon as taken by NASA’s EPIC camera onboard the NOAA DSCOVR spacecraft 2023-01-04 12:49:20
    This image was as soon as taken by NASA’s EPIC camera onboard the NOAA DSCOVR spacecraft 2023-01-04 12:49:20 image
  • Vivid Web Crawler の調査
    Vivid Web Crawler の調査 anti-Mastodon
  • 호기심 정면 위험 회피 디지캠 2012-08-06 Ask HN
  • T-Cell によると、ファイルの調査により興味深い 3,700 万件のアカウントが侵害された
    T-Cell によると、ファイルの調査により興味深い 3,700 万件のアカウントが侵害された Artificial intelligence
  • FBIはマーティン・ルーサー・キングの自殺を説得しようと努力している
    FBIはマーティン・ルーサー・キングの自殺を説得しようと努力している anti-Mastodon
  • ez-Clang-Linux を使用した Raspberry Pi での遠隔 C++ REPL
    ez-Clang-Linux を使用した Raspberry Pi での遠隔 C++ REPL anti-Mastodon
  • Krateo PlatformOps – Kubernetes ベースの完全セルフプロバイダー管理飛行機
    Krateo PlatformOps – Kubernetes ベースの完全セルフプロバイダー管理飛行機 anti-Mastodon
  • 電子書籍の Pixel Art 作品と NFT (50 ページ) [EN、FR、DE、PT、IT、SPA]
    電子書籍の Pixel Art 作品と NFT (50 ページ) [EN、FR、DE、PT、IT、SPA] anti-Mastodon
  • EmuO v1.0
    EmuO v1.0 anti-Mastodon
  • The knowledgeable trades haven’t caught as a profession different with Gen Z
    The knowledgeable trades haven’t caught as a profession different with Gen Z Artificial intelligence
  • 小売、検索、Amazon の 400 億ドル規模の「広告およびマーケティング」業界
    小売、検索、Amazon の 400 億ドル規模の「広告およびマーケティング」業界 Artificial intelligence
C2Rust でより安全な Rust を発行する

C2Rust でより安全な Rust を発行する

Posted on March 15, 2023 By 📢 𝔹𝕚𝕟𝕘™

この投稿では、C2Rust を拡張してメモリを出力する際の Immunant と Galois の最新の結果に焦点を当てることができます。 – 一定の条件で心地よいさび。 この作業により、翻訳の負担を人間から機械にかなりの割合で移すことを目的としています。 これまで、C2Rust は C を安全でない Rust に変換することができましたが、これは真の C コードよりも安全ではありません。 これがハンドブックのリファクタリングを慣用的で快適な Rust にするための出発点を提供するという事実にもかかわらず、この作業は人間によって実行される必要がありました。 静的および動的診断の集合体を使用することにより、C2Rust の最新のインコンストラクション バージョンは、快適な Rust へのリフティングのいくつかを自動的に実行できるようになりました。 この投稿では、この診断がどのように機能するか、および安全でない C プログラムをメモリに適した Rust に変換することの難しさを軽減するために採用している配置について説明します

Rust は確かにバッテリーを組み込んだ言語ですが、説明のために、整数の配列を形成する柔軟性が含まれていないことを断言します。 さらに、次のような既存の C 実装を移行することにより、この欠点に対処することに決めたことを考慮してください。 void insert_sort(int const n, int const p) { for (int i=1; i 0 && p[j-1]> tmp) { p[j]=p[j-1]; j–; } p[j]=tmp; } }

これを C2Rust にフィードすると (c2rust.com

で試してみてください) )、この Rust を 2 つ以上の終端から取り出します:

pub unsafe extern “C” fn insert_sort( n: libc::c_int, p: *mut libc::c_int) { let mut i: libc::c_int=1 as libc::c_int; while i 0 as libc::c_int && *p.offset((j – 1 as libc::c_int) as isi)> tmp { *p.offset(j as isisize)=*p.offset((j – 1 as libc::c_int) as isisize); j -=1 } *p.offset(j as isisize)=tmp; 私は +=1 }; }

このコードは、より少ないキャストを使用するように書き直される可能性がありますが、それは他の投稿のトピックです。 ここでの目的は、範囲外のアクセスが可能になるため、生のポインターの使用を回避することで、アシストの安全性を低下させることです。 insert_sort の 2 次元仮パラメータ p を商取引する場合、すべての名前のサイトで insert_sort に渡される堅固な引数を商取引する必要があります。 メインで名前を吸収することを教えてください:

unsafe fn main_0() -> libc::c_int { let mut arr1: [libc::c_int; 3]=[1, 3, 2];  insert_sort( 3 as libc::c_int, arr1.as_mut_ptr());  // … }  
arr1 へのポインタが main_0 から insert_sort までどのように流れるかを知りたいです。 これは私たちの単純な例では些細なことですが、全体的なケースでは、「ポインター X は、割り当て Y へのエントリを取得するために軽くできるか?」に相当するエイリアシングの質問に対して、正直な解決策を繰り返し提供するアルゴリズムは存在しません。 簡単に言えば、トピックは、事実上すべてのプログラムが十分に進んでおり、おそらくそれらがおそらく存在する可能性のある状態の合計を分析することができないということです。実行可能なすべてのプログラムの状態を推論する分析を構築します(静的プログラム分析としても識別されます) が、彼らは通常、明白な「はい/いいえ」の解決が必要な場合に、「おそらく」に相当する保守的に正直な回答を支援します。 このため、実験を容易にするために、プログラム実行中の動的な観察により、やや単純な種類の静的診断から学べることを増やします。 同様の配置でインストゥルメントを試行するファズは、洗練された静的分析を避け、ランダムな入力の巨大な組み合わせをプログラムに供給することによって、実行時に違反へのフェッチ エントリを検出する変更として決定します。 私たちの考えでは、Rust フォーム設計で同等の計算を行うための戦略に気付くための戦略をプログラムがどのように使用するかについて、同様の配置で十分に教えることができると考えています。 これは常に機能するわけではありませんが、実際にはプログラマーが有意義な時間を維持するのに十分に機能するため、長くても問題ありません。 ファザーを喜ばせるために、生成されたRustコードを計測し、いくつかのインスタンス入力で実行します。 生成したファイルを使用して、ポインター派生グラフまたは PDG を作成します。

Pointer derivation graph for array of integers

ポインタの導出グラフは、プログラムを改造するために使用する観察結果の要約です。 (同等のファイルを提供する静的な診断が手元にある場合は、おそらく光が必要になる可能性があります。残念ながら、手続き間の側面-診断はドラゴンであり、もはや壊れることはありません.)PDGを吸収したのでポインター引数 p の場合、p が概説されて軽量であるこの手法のすべてのポイントで、どのようなアクセス許可が必要かを計算できます。 私たちが気にかけている5つのパーミッションは

  • WRITE: このテクニックがポインティに書き込むとき
  • UNIQUE: ポインターが特定のエントリへのエントリを取得する最も便利な方法である場合メモリ配置
  • FREE: ポインタが最終的に free
  • [1, 3, 2] に渡されるとき1
  • OFFSET_ADD: ポインターにオフセットを追加した後、たとえば、配列要素へのエントリをフェッチする
  • OFFSET_SUB: ポインターからオフセットを差し引いた後 [1, 3, 2]

    Rust 型へのポインター ブループリントが必要とするアクセス許可次のステップ(非網羅的

      2[i as usize] ) 机:
      書く
      クィア 無料 続くptr形式

      オフセット
    • <[T]> ) &T

    • バツ バツ
      &mut T <[T]> )バツ &細胞<[T]>3 [(j - 1 as libc::c_int) as usize] バツ [i as usize]
      バツ 箱バツ &[1, 3, 2]

      バツ

    • &mut [1, 3, 2]

      バツ バツ
      バツ

      バツ

    • ボックス<[i as usize]><[T]>
    • バツ

      このデスクと PDG を使用して、整数の配列を挿入形式に書き換えましょう:

      パラメータ p は OFFSET 4 パーミッションは、配列インデックス操作のポインターに欠陥があるため距離が軽いため、WRITE パーミッションはそれらの操作の 1 つが小売業者であるためです。 最終行パーミッション デスクは、WRITE および OFFSET 操作を必要とするファイルの快適な形式を提供します。これは &mut [T], which way that &mut [libc::c_int] は、p の正しい具象形式です。 仮パラメーター p の形状を更新した後、フィーチャーの体格全体に商取引を伝播することができます。 オフセットのすべての使用を正直な配列インデックス操作に置き換えます。これにより、フリップではインデックスを isize ではなく usize にキャストする必要があります。 これらの書き換え操作をロボットで実行することはまだできませんが、そこにフェッチした後、最終的な結果はこれを喜ばせる必要があります:

      pub fn insert_sort(n: libc::c_int, p: &mut [i as usize] )) { let mut i: libc::c_int=1 as libc::c_int;  while i  0 as libc::c_int && p[(j - 1 as libc::c_int) as usize]> tmp { p[(j - 1 as libc::c_int) as usize]=p[(j - 1 as libc::c_int) as usize] );  j -=1 } p
      =tmp; i +=1 } } unsafe fn main_0() -> libc::c_int { let mut arr1: [libc::c_int; 3]=[1, 3, 2]; insert_sort(3 as libc::c_int, &mut arr1); // フォーム コマースを // 呼び出し元に伝達 // … }

      執筆時点では、書き換えを自動的に吸収する柔軟性を課しています。 私たちは(の断片)の雇用者ですlighthttpd マネキン生物としてのウェブサーバー。 すべてのコードは C2Rust GitHub にあります レポジトリ, 多くの作業は、有益なバージョンを吸収するよりも早く残りますインテリアドッグフーディングを過ぎた1つのこと。 2023 年の後半のいつか、あなたのコードをより安全な Rust に持ち上げるための戦略を維持するカンファレンスアップのウェブログ投稿に尋ねてください.

      百万ドルの要求は、最も現代的な方法でフェッチできる慣用的な Rust コードにどれだけ近いかということです。 前述のように、静的診断の限界は適切に特定されています。 私たちは、途方もない実行可能な静的診断を構築するためのリソースを吸収していないため、完全に自動で正確性を維持する方法で終了できるものの賢明な限界に瞬時にぶつかります。 (適切にアウトライン化された C プログラムをパニックする Rust に改造することを可能にする正確性のリベラルな概念を採用しています。これにより、境界チェックを追加し、さまざまなものの中で RefCell を使用できるようになる可能性があります)。 動的診断の戦略によって得られる意味は、静的診断の戦略によってもはや手に入らない特性を推測するオラクルとしては軽いものですらあります。 実行可能な場合はいつでも、投機的な書き換えを実行して、誤った投機が発生した場合にコードが恐れるようにすることができます。 プログラマーは、プロパティが繰り返し構築されることを立証するために、誤った憶測を防ぐために挿入されたアサートをつかむことができます。 これも間違いなく今後の投稿に並ぶでしょう。 当分の間、C2Rust で何度も到達できる可能性があります。 discord チャンネル および GitHub

      リポジトリ。 皆様からのご連絡をお待ちしております!

      この評価は、 Defense Developed Analysis Initiatives Company (DARPA) からの資金提供を受けて開発されました。 表明された見解、意見、および/または調査結果は著者のものであり、国防総省または米国当局の適切な見解または方針を表すものとして解釈されることはありません.

      配布発音「A」(パブリックフリーアップ認定、配布無制限)

      𝚆𝚊𝚝𝚌𝚑 𝙽𝙾𝚆 📺

    Artificial intelligence, Ask HN, Emitting, Safer, Show HN, Technology, TOP HN Tags:Emitting, Safer, Show NH:

    Post navigation

    Previous Post: Scheele's Green、欠陥のある葉と終焉の色
    Next Post: PyTorch 2.0 の起動

    Related Posts

    • フレームワークの精神移植を備えたThinkPad 701C
      フレームワークの精神移植を備えたThinkPad 701C Artificial intelligence
    • Kotlin Info Classes 101: 構文、使用法、継承の解決
      Kotlin Info Classes 101: 構文、使用法、継承の解決 Artificial intelligence
    • YouTube への依存
      YouTube への依存 Artificial intelligence
    • アクティビティ パブと Web フレームワーク
      アクティビティ パブと Web フレームワーク activity
    • Posix 互換性の比較: GCP Filestore、Amazon EFS、および Azure Recordsdata
      Posix 互換性の比較: GCP Filestore、Amazon EFS、および Azure Recordsdata Artificial intelligence
    • GlobusアナログナビゲーションPC内の電子機器のリバースエンジニアリング Show HN
    • ASML 2022 年第 4 四半期決算
      ASML 2022 年第 4 四半期決算 Artificial intelligence
    • 科学者は、Covidの感染をブロックする肺内のタンパク質を調査します
      科学者は、Covidの感染をブロックする肺内のタンパク質を調査します Artificial intelligence
    • インテリジェンスはどこにでもあります: AI から頭足類まで
      インテリジェンスはどこにでもあります: AI から頭足類まで Artificial intelligence
    • Let the Knife Direct: ホセ・リサールについて
      Let the Knife Direct: ホセ・リサールについて Artificial intelligence

    Recent Posts

    • Treble.ai (YC S19) はニューヨークでスペイン語を話すエンジニアを採用しています
    • 映画はなぜ2ndが暗いのか?
    • LifeHacker の異例のスタート
    • 長時間ストレージとしてのSSD
    • 教皇の AI 画像がバイラルになったことに不安を感じたら?

    Recent Comments

    1. robga on Excessive Avenue コーヒーのカフェイン ステージはさまざまで、テストでは
    2. Loic on 行方不明の放射性タブレットは、必死の捜索の後、WA奥地で偶然見つけました
    3. minihat on メタは、標準的な VR e スポーツ Echo Area をシャットダウンします
    4. dafelst on フレーム ポインターの巻き戻しによる Move 実行トレーサーのオーバーヘッドの削減
    5. cloudking on GraphGPT: 構造化されていないテキストの肯定的な素材からのレコードデータ グラフの外挿
    • LangChain での取得
      LangChain での取得 Artificial intelligence
    • KSC-68P-390 1968-10-08T00:00:00Z
      KSC-68P-390 1968-10-08T00:00:00Z Ask HN
    • SpaceX CRS-15 탑재 과학 브리핑 2018-06-28T00:00:00Z
      SpaceX CRS-15 탑재 과학 브리핑 2018-06-28T00:00:00Z Artificial intelligence
    • 具体的な作図、C4 とは異なるマイルドなウェイト
      具体的な作図、C4 とは異なるマイルドなウェイト Artificial intelligence
    • プログラミング AI が怖い
      プログラミング AI が怖い Artificial intelligence
    • Jetnet がコミュニティ主導の ADSB アグリゲーターである ADS-B Alternate を買収
      Jetnet がコミュニティ主導の ADSB アグリゲーターである ADS-B Alternate を買収 acquires
    • 解放 0.27.0 tinygo-org/tinygo
      解放 0.27.0 tinygo-org/tinygo anti-Mastodon
    • ロシアの不快な広告キャンペーンのレビュー、2023 年 3 月 1 日 (ISW)
      ロシアの不快な広告キャンペーンのレビュー、2023 年 3 月 1 日 (ISW) anti-Mastodon
    MAILANON
    2100 MAIL
    SEO
    METAVERSE
    BioLINK
    CRYPTO MINING
    CASINO
    DEFI-TRACKER
    StartApp Network
    RAVES-MONSTER-GAME
    RAVES EXCHANGE
    RAVES NFT
    KVANTA TV

    Copyright © 2023 Nasare™🚀.

    Powered by PressBook News Dark theme