spica.wrk.ru

Search

Items tagged with: rust

Im #pentaradio24 – Rostiger Datenschaum: Mozillas Programmiersprache #Rust – Was kann man damit machen? Was ist in den letzten fünf Jahren passiert? Wie fang ich an?
 
Im #pentaradio24 – Rostiger Datenschaum: Mozillas Programmiersprache #Rust – Was kann man damit machen? Was ist in den letzten fünf Jahren passiert? Wie fang ich an?
 
#rust #matrix
 
Если кто-то хочет попробовать WASM не устанавливая ни чего есть отличный сайт

http://webassembly.studio/

#WASM #Rust
 
На выходных решил не много пописать на Rust и переписал на WASM свой студенческий проект по алгоритму RSA. Долго мучился с тем как передавать текст в wasm, но потом переписав всё использованием wasm-bindgen все заработало

https://gitlab.com/deadblackclover/rsa-wasm

#Rust #WASM #RSA
 
Rust - 4+ years later by Jan-Erik Rediger: https://fnordig.de/2019/05/15/rust-4-years-later/ #Rust #language
 
Rust Comes to RISC-V
https://abopen.com/news/rust-comes-risc-v/

#rust #risc #riscv
 
--------#rust----------
To install rust, run:

`curl https://sh.rustup.rs -sSf | sh`

and append to your .bashrc (or .profile)

export PATH="$HOME/.cargo/bin:$PATH"

-----------------------
Please reply to report error rust:1003
 
Success story from the #OxidizeConf impl days: #Rust runs in threads on #RIOT-OS on a #RISCV device.
Изображение / Фото
 
Уроки по языку программирования #Rust (Автор: Teddy The Bear)
#rust
 
dwm (dynamic window manager http://dwm.suckless.org/) converted from C to (unsafe) Rust with c2rust running in Xephyr #Rust
Изображение / Фото
#rust
 
hunter is a fast and lag-free file browser/manager for the terminal written in Rust. It features a heavily asychronous and multi-threaded design and all disk IO happens off the main thread in a non-blocking fashion, so that hunter will always stay responsive. https://github.com/rabite0/hunter #Rust
Изображение / Фото
#rust
 
Первые шаги начались

#rust #os
Изображение / Фото
#rust #os
 
New blog post: Three weeks into my new job writing Rust professionally I reflect on the experience so far.

https://www.wezm.net/technical/2019/03/first-3-weeks-of-professional-rust/ #Rust
#rust
 
If my #Rust project has just 2 files in src:

src
- main.rs
- lib.rs

Where could/should I put tests? Currently Ive got them at the end of the lib.rs file. But if I wanted to put them in a separate file (like test.rs), would that just go in the `src` directory next to the other two files? Do I have to tell Cargo where to look for the tests?
#rust
 
--------#rust----------
To install rust, run:

`curl https://sh.rustup.rs -sSf | sh`

and append to your .bashrc (or .profile)

export PATH="$HOME/.cargo/bin:$PATH"

-----------------------
Please reply to report error rust:1003
 
Появилась идея, изучать Rust в процессе написанная ОС. Мне кажется это будет хорошей практикой языка и можно будет разобраться что внутри у систем

#rust #os
#rust #os
 
My new week's resolution: try to get use and (get used to) `ripgrep` in stead of `git grep`.

#rust
#rust
 
Что то я совсем забыл про своего бота @hacktheplanet Надо им заняться

#bot #hacktheplanet #rust
 
Any #Rust affictionados to give me a clue? I try to figure out why building #firefox 65 from source leads to this Rust "panic"

The file affected is I think this

https://hg.mozilla.org/mozilla-central/log/tip/servo/components/style/build_gecko.rs

Need help, otherwise I need to run #chromium :(

Text of the message below or at https://gist.github.com/cec0d77f589edbff97143de85d863a71

--- stderr
thread '<unnamed>' panicked at 'Unable to find libclang: "the `libclang` shared library at /usr/local/llvm70/lib/libclang.so.7 could not be opened: /usr/lib/libdl.so.1: Undefined symbol \"_once\""', src/libcore/result.rs:1009:5
stack backtrace:
0: 0x123b490 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h4ad256dbc8354207
1: 0x1247990 - std::sys_common::backtrace::print::h74e3f20e8210422a
2: 0x12416a3 - std::panicking::default_hook::{{closure}}::h0ec734b51562d1d3
3: 0x1241409 - std::panicking::default_hook::heb2767278c3cb27c
4: 0x1241dca - std::panicking::rust_panic_with_hook::hddb2b46b78c5bf00
5: 0x1241946 - std::panicking::continue_panic_fmt::h1d35bb7a12213ccb
6: 0x1241838 - rust_begin_unwind
7: 0x125f0ba - core::panicking::panic_fmt::h7fcc636c1a980b4c
8: 0x10b0cb9 - core::result::unwrap_failed::h97c27bf4f7497010
9: 0x10a1e4e - std::sync::once::Once::call_once::{{closure}}::h119b6920e41819df
10: 0x122ffc1 - std::sync::once::Once::call_inner::h64895fa56b72bb59
11: 0x115fdc6 - bindgen::Builder::generate::h78d35429d9aca40e
12: 0x1083a47 - build_script_build::build_gecko::bindings::write_binding_file::hd3bf04de8f2d673c
13: 0x108c95f - build_script_build::build_gecko::bindings::generate_bindings::h8daedac6dc5cc6c9
14: 0x12523de - __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:102
15: 0x1077b9a - <F as alloc::boxed::FnBox>::call_box::hae957d3989e1189d
16: 0x123f42e - std::sys_common::thread::start_thread::hcfd1f4e591e5bf1f
17: 0x1230b18 - std::sys::unix::thread::Thread::new::thread_start::h9f22beba41c290d1
18: 0x801ad5bc4 - pthread_create
19: 0x0 - <unknown>
thread '<unnamed>' panicked at 'Once instance has previously been poisoned', src/libstd/sync/once.rs:372:21
stack backtrace:
0: 0x123b490 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h4ad256dbc8354207
1: 0x1247990 - std::sys_common::backtrace::print::h74e3f20e8210422a
2: 0x12416a3 - std::panicking::default_hook::{{closure}}::h0ec734b51562d1d3
3: 0x1241409 - std::panicking::default_hook::heb2767278c3cb27c
4: 0x1241dca - std::panicking::rust_panic_with_hook::hddb2b46b78c5bf00
5: 0x1241b75 - std::panicking::begin_panic::h2575e258ac9639a4
6: 0x1230024 - std::sync::once::Once::call_inner::h64895fa56b72bb59
7: 0x115fdc6 - bindgen::Builder::generate::h78d35429d9aca40e
8: 0x1083a47 - build_script_build::build_gecko::bindings::write_binding_file::hd3bf04de8f2d673c
9: 0x10892bb - build_script_build::build_gecko::bindings::generate_structs::h7f4c1adceae6826f
10: 0x12523de - __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:102
11: 0x1077d0a - <F as alloc::boxed::FnBox>::call_box::hfd5fc262c75b13b4
12: 0x123f42e - std::sys_common::thread::start_thread::hcfd1f4e591e5bf1f
13: 0x1230b18 - std::sys::unix::thread::Thread::new::thread_start::h9f22beba41c290d1
14: 0x801ad5bc4 - pthread_create
15: 0x0 - <unknown>
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Any', src/libcore/result.rs:1009:5
stack backtrace:
0: 0x123b490 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h4ad256dbc8354207
1: 0x1247990 - std::sys_common::backtrace::print::h74e3f20e8210422a
2: 0x12416a3 - std::panicking::default_hook::{{closure}}::h0ec734b51562d1d3
3: 0x1241409 - std::panicking::default_hook::heb2767278c3cb27c
4: 0x1241dca - std::panicking::rust_panic_with_hook::hddb2b46b78c5bf00
5: 0x1241946 - std::panicking::continue_panic_fmt::h1d35bb7a12213ccb
6: 0x1241838 - rust_begin_unwind
7: 0x125f0ba - core::panicking::panic_fmt::h7fcc636c1a980b4c
8: 0x1077500 - core::result::unwrap_failed::h392a9a2fdf96c1f1
9: 0x108edc3 - build_script_build::main::h3259f2f44e06a22d
10: 0x1071315 - std::rt::lang_start::{{closure}}::h0eead40fdd17694b
11: 0x12417b7 - std::panicking::try::do_call::hea8e698b70685304
12: 0x12523de - __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:102

....
 
--------#rust----------
rust macro println!("...") is based on the rust macro format!("...").
Print version prints on the stdio whereas the format will print on a std::String.

rust println/format macros also allow convenient formatting in binary and hexadecimal.

println!("0x{:04X}", 1000); will print 0x03E8 and
println!("b'{:08b}'", 2); will print b'00000010' as an example.

-----------------------
Please reply to report error rust:1008
 
With all the memory vulnerabilities as well as other related issues in C and C++, why is network software continued to be written in it and not Rust. Is the risk worth it?
https://www.zdnet.com/article/wifi-firmware-bug-affects-laptops-smartphones-routers-gaming-devices/

#rust #cybersec
 
#Rust 1.32 release highlights:
• awesome new dbg!() macro for debug-printing
• native (i.e glibc/libsystem_malloc) allocator instead of jemalloc by default (cuts down on binary sizes!)
• you can now use Self in more places
• more fn's became const fn's
• a new family of methods for converting between integers and their byte representations
• new things in macro_rules
• uniform paths: use statements now support the kind of item paths used elsewhere
#rust
 
#Programming languages I know (for various definitions of “know”) by decade of invention:

10s: #Rust, #Elixir, #Crystal
00s: #Clojure
90s: #Ruby, #Python, #JavaScript
80s: #Perl
70s: #C, #Scheme
60s: #BASIC
50s: (none)

Is there a language from the fifties worth learning?
 
Oh wow, Steve Klabnik (author of #theRustProgrammingLangauge book and #rust core team member) is leaving Mozilla. https://words.steveklabnik.com/thank-u-next

Key quote:
> I could say a lot of things here, but I won’t get into the details. What’s really important is this: I’m not proud to be a Mozillian anymore.

I've heard some negative things about Mozilla lately, but this is something that personally moves the needle in a anti-mozilla direction more than, e.g., ads on the new-tab page
 
Some morning embedded Rust development. New Awesome WM set up is working nicely.

#FreeBSD #Rust
Изображение / Фото
 
  • Content warning: rust code

Reveal/hide

 
  • Content warning: rust code

Reveal/hide

 
Sometimes programming jargon is weird. I just told my wife "I realized I was having a problem because I'd forgotten to put my strings in a box".

#rust
#rust
 
Current status: reviving my toy json parser to use #rust 2018 goodies. I wonder if non-lexical lifetime might finally let me implement a "streaming iterator".
#rust
 
I just realized I never did an #introduction... So here we go!

My jams:

- #rust, #python, #clojure, #programming
- #gnu, #linux, #emacs, #orgmode
- #freesoftware, #hacker stuff
- #music, lots of weird music
- #politics, the one to the left
- #physics
 
#rust-1005

rust installation comes with a whole programming book.
To access the html version of the book in your local environment just type:

rustup doc --book

The installation also has the full documentation for the version you are using.
Access it via:

rustup doc
 
Also have been thinking, whether it is good idea to try out #Rust for GTK development?

It's like a newer more powerful language with rich toolset and which is afaik in process of adoption in #Gnome community.

Also all the build-time-gc convinces me it is good idea. But I didn't manage out borrowing and wrapping variables though...
 
Решил сделать универсальную библиотеку для написания эксплоитов для #ctf, но так как я сейчас в процессе изучения #Rust, то думаю не всем она подойдет
#ctf #rust
 
#rust-1004

Rust uses structs , tuples and enumerations
to offer composite data-types beyond the basic data-types.
Structs are similar to c++ structs,
tuples are similar to python tuples,
enumerations are more advanced than c++ enum class as they
can contain parameters and pair up smartly with a matching
construct to process enumeration driven differences.
 
Gotham, a flexible Rust web framework that promotes stability, safety, security and speed. https://gotham.rs #framework #rust @gotham_rs
Изображение / Фото
 
Rocket is a web framework for the Rust #rust
#rust
 
Rust framework for building client web apps #rust
#rust
 
Rocket is a web framework for the Rust #rust
#rust
 
Installing a program with cargo (#Rust's package manager). It downloads 50 other packages. So, Rust is now industry-grade: it behaves the same as Node.js.
 
This weekend I built a tool in Rust to collect information from all the ports in the FreeBSD ports tree and compile it into a mobile friendly website. Still a work in progress but it's going well.

#FreeBSD #Rust
Изображение / Фото
 
Plume is a federated blogging application that talks ActivityPub built in #Rust

https://github.com/Plume-org/Plume
Изображение / Фото
#rust
 
Password Generation in Ruby and Rust by Thomas Hurst: https://hur.st/blog/2018/08-25-password-generation-in-ruby-and-rust/ #Rust #tools #starting
 
Бот для Starcraft на Rust
https://habr.com/post/416743/

#rust
#rust
 
Если не нравится Electron то имеет смысл глянуть в сторону #rust библиотеки (или как там они называются) web-view ... на его основе + готовый JS скрипт можно сделать что-то подобное -
#rust
 
Later posts Earlier posts