tracyspacy

@tracyspcy
96 Followers
95 Following
519 Posts
Was stateless for a while 🇺🇳
mod at 
https://lemmy.ml/c/bwockchain
GitHubhttps://github.com/tracyspacy

First they came for its chips, then they came for its energy and finally they came for its greedy idiots!

#bitcoin #spacex

Bitcoin any time soon

Michael Saylor: "I said to YOU to never sell your Bitcoin. I never said that THE COMPANY wouldn’t sell its Bitcoin."

hahaha now I see THE strategy

source: Buttcoin

#bitcoin #strategy

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

#rustlang #cli

RE: https://mastodon.social/@tracyspcy/116716248556720328

As for alignment in stream mode - decided to use fixed 20 chars width for size and n_link - much cheaper, than separate pass through directory.

Progress on fli - directory listing tool in no_std rust + libc:
1. MacOS 51KB, rpi zero w: 22KB
2. added long output (-l) and sorting by name (-s)
3. added aligned output for sorted version.
4. direct steam mode: reads directory entries and writes to buffer and outputs both long and basic return , but no sorting as compromise

Challenge :
how to align output (size,n_link) w/o allocations: I think to make 2 passes (1st get max width and 2nd for content)..

#rustlang #cli #rust #raspberrypi

The dreaded "S" word

Progress on fli - directory listing tool in no_std rust + libc:
1. MacOS 51KB, rpi zero w: 22KB
2. added long output (-l) and sorting by name (-s)
3. added aligned output for sorted version.
4. direct steam mode: reads directory entries and writes to buffer and outputs both long and basic return , but no sorting as compromise

Challenge :
how to align output (size,n_link) w/o allocations: I think to make 2 passes (1st get max width and 2nd for content)..

#rustlang #cli #rust #raspberrypi

Started working on my directory listing tool in rust with a goal to make as tiny single binary as possible (now it is 55kb macOS and 21kb for rpi). I went no_std since it contributes heavily to binary size. And because I want it work same way on Mac and my rpi zero, I decided to use libc crate for syscalls .
Quickly I noticed that I started to use libc for other stuff, so basically as std . So now it seems I’m writing in something that I can call crust  
https://github.com/tracyspacy/fli
#rustlang
GitHub - tracyspacy/fli: cli tool to list directory content

cli tool to list directory content. Contribute to tracyspacy/fli development by creating an account on GitHub.

GitHub
Bye Bye Bitcoin!
#bitcoin #AI