1
13
Announcing Rust 1.97.1 (blog.rust-lang.org)
2
8
submitted 6 days ago by PuercoPop@piefed.social to c/rust@lemmy.ml
3
9
crates.io: development update (blog.rust-lang.org)
4
17
Announcing Rust 1.97.0 (blog.rust-lang.org)
5
6
submitted 1 week ago by dessalines@lemmy.ml to c/rust@lemmy.ml
6
22
submitted 2 weeks ago* (last edited 2 weeks ago) by remustan37@sh.itjust.works to c/rust@lemmy.ml

Which rust ui framework works the best on android? The only one I've seen being used is tauri, but its web based.

7
17
submitted 2 weeks ago by floofloof@lemmy.ca to c/rust@lemmy.ml
8
11
submitted 2 weeks ago by tracyspcy@lemmy.ml to c/rust@lemmy.ml

Crossposted from https://lemmy.ml/post/49521856

Thing I stumbled upon:

I added boolean argument & if statement inside sort_unstable_by closure:

//from
|&a, &b| compare(a, b) 

//to
|&a, &b| if is_reverse { compare(b, a) } else { compare(a, b) }

I expected binary to grow slightly, but actually ca 1KB smaller.

I dug into & found that the reason is: quicksort fn became 980 bytes smaller.

Why? Not sure. Inlining looks same, quicksort just has fewer instructions.

target: arm-unknown-linux-gnueabihf

commit: https://github.com/tracyspacy/fli/commit/a87a98be77cc1972a53e6399716a227d1135e76b

details: https://pastebin.com/qJdTw49n

9
17
Announcing Rust 1.96.1 (blog.rust-lang.org)
10
7
11
21
submitted 1 month ago by tracyspcy@lemmy.ml to c/rust@lemmy.ml

Crossposted from https://lemmy.ml/post/48563577

Initial release of FLI - really tiny and fast (like a 🪰) directory listing tool.

Initial Why: need some easy readable ls like tool for rpi to use via ssh.

Current Why: check if with Rust one can build core utils like tools faster and smaller.

  • Size:

18K - RPI ZERO W

51KB - Mac

  • Default mode streams readdir() => stdout with zero heap allocation.

  • Nice readabilty thx to (📄 and 🗂️) instead of text coloring

  • Written in no_std #rust + libc.

https:// github.com/tracyspacy/fli

12
10

Hello,

I have been learning rust and want to make something exciting so I though why not build a Lisp compiler in Rust B)

so here what I did today. https://gist.github.com/anon2834678263/bcaa06e934f7b478be79203553f170ee

the tokenizer isn't ready and might have horrible bugs but at least I got comfortable declaring immutable variable by default, not surrounding stuff with parentheses unnecessarily. oh and also Enums which is most powerful thing in rust as people say.

I am still not satisfied though since the code looks more like C than Rust xD

maybe some experienced people can correct me :)

13
3
submitted 1 month ago by veloren23djk@lemmy.zip to c/rust@lemmy.ml

I am creating an app that will have some data visulization features. I have no experience in tauri or web dev, so I want to know whether it is possible to render D3.js, plotty, etc. and use them as a part of the tauri frontend

14
19
15
11
submitted 1 month ago by thingsiplay@lemmy.ml to c/rust@lemmy.ml
16
1
17
6
18
19
submitted 1 month ago by Ephera@lemmy.ml to c/rust@lemmy.ml
19
11
This Week in Rust 653 (this-week-in-rust.org)
submitted 1 month ago by dessalines@lemmy.ml to c/rust@lemmy.ml
20
8
submitted 2 months ago by steam_lover@sh.itjust.works to c/rust@lemmy.ml
21
9
submitted 2 months ago by dessalines@lemmy.ml to c/rust@lemmy.ml
22
22
submitted 2 months ago* (last edited 2 months ago) by tracyspcy@lemmy.ml to c/rust@lemmy.ml

Finally I can stay forever on lemmy even not opening the browser! 😂

Thinking of using it as a mod tool to see new posts in communities I moderate.

Sharing it early, maybe get some ideas on how to make it better.

https://github.com/tracyspacy/lemmy-tray

23
6
submitted 2 months ago by dessalines@lemmy.ml to c/rust@lemmy.ml
24
7
submitted 2 months ago by steam_lover@sh.itjust.works to c/rust@lemmy.ml
25
8
submitted 2 months ago by remustan37@sh.itjust.works to c/rust@lemmy.ml

Hi everyone I was thinking of creating a backend module that has functione for a note taking(search, sort, etc). So anyone can implement a ui on top of it.

I have some basic understanding of rust (made a just-working chip-8 emulator). But I've never used SQL or other database.

Is this plausible? Is there a similar project that I can use as reference? What are the mistakes I should avoid?

view more: next ›

Rust Programming

9324 readers
12 users here now

founded 7 years ago
MODERATORS