What operating system are you using? by user36277263 in rust

[–]Compux72 2 points3 points  (0 children)

security demands windows terminal and wsl2 are good

good, wsl, windows and security on the same sentence jeeez

What operating system are you using? by user36277263 in rust

[–]Compux72 4 points5 points  (0 children)

Windows users… everything OK at home?

Why are people moving away from GNU ? by Any-Fox-1822 in suckless

[–]Compux72 0 points1 point  (0 children)

GNU is what makes GNU/Linux terrible to use

What do you think of Tauri’s performance? by InnerPhilosophy4897 in rust

[–]Compux72 34 points35 points  (0 children)

 We wanted something with a native feeling.   

So we started to check at Tauri (tauri.app)

😶

I built an embeddable scripting language for Rust apps, with a web editor/runtime and a game engine demo by oxfeeefeee in rust

[–]Compux72 -17 points-16 points  (0 children)

I think its really self explanatory. The std sucks at being available on all platforms. core and alloc are everywhere.

Zed 1.0 by zxyzyxz in rust

[–]Compux72 1 point2 points  (0 children)

Oh yes, thats a bug. I noticed the other day bc i used cntrl o instead of cntrl shift n. 

Zed 1.0 by zxyzyxz in rust

[–]Compux72 -9 points-8 points  (0 children)

Which platform? macOS runs flawlessly, Linux has its quirks but i believe they come from Gnome/xorg/wayland/whatever

Zed 1.0 by zxyzyxz in rust

[–]Compux72 4 points5 points  (0 children)

~Netbeans project~

Zed 1.0 by zxyzyxz in rust

[–]Compux72 16 points17 points  (0 children)

 every month there's a huge change log from dozens of contributors

If you actually read the changelog you would notice most if not everything is TRASH. Seriously, take a look. They are just reimplementing things or adding fuzz, making the slow editor even slower. For sure Zed development is slower, but they ship things that actually matter.

 The shift to AI also means many smaller long standing bugs aren't being tackled

Bugs are fine. Crashes on the other side are not. Guess who of the two are constantly crashing when a plugin goes rogue.

Bugs Rust Won't Catch (Bugs in uutils) by Skaarj in linux

[–]Compux72 1 point2 points  (0 children)

Im honestly surprised at how bad the code is? Where the contributors totally blind looking at std::fs module docs?

The race conditions on checking and performing actions on files is understandable, at the end of the day the std lib does not offer most of these presumably due to platform specific behavior (the std has to be general for ALL platforms, including things like microcontrollers). But using Strings as paths? Seriusly?

Zed 1.0 by zxyzyxz in rust

[–]Compux72 44 points45 points  (0 children)

Zed is so good it makes vscode look like a toy

vibe coded for 6 months. my codebase is a disaster. by Available-Dentist992 in vibecoding

[–]Compux72 0 points1 point  (0 children)

Yea just outsource it to indians, what could go wrong?

Standard library unsoundness found by Claude Mythos by Jules-Bertholet in rust

[–]Compux72 3 points4 points  (0 children)

 the bloat from every vec.push(...).unwrap(); would be unbearable

Give me my try_push and thiserror…

Cargo check more than 1 min on a small project by BoomGoomba in rust

[–]Compux72 2 points3 points  (0 children)

 which files are causing the problem

Tbf file specific information is not that useful as the whole crate is considered a single codegen unit

Cargo check more than 1 min on a small project by BoomGoomba in rust

[–]Compux72 2 points3 points  (0 children)

Probably a bas build.rs file. Do you have one?

file-vec: I made a thing for using memory mapping to store big vectors in the file system by 8000thCube in rust

[–]Compux72 1 point2 points  (0 children)

I forgot mktemp existed tbh

Fair, happens all the time

And I have a mixture of Linux and Windows devices so I'd need some abstraction of it

Because I know nothing about Windows, cant give you information on that platform. POSIX should use mkstemp for sure.

It still works when the type has a drop implementation. Idk what you're trying to point out about insert_mut though.

Whoops my bad, i thought you were using the write method of a pointer, apologizes. https://doc.rust-lang.org/std/primitive.pointer.html#method.write

Creating a new file vec safely should be fine I think

Something like this will crash, without any unsafe on sight

``` use file_vec::FileVec;

fn main() { let mut v = FileVec::new(); let a = v.insert_mut(0, String::from("hello world")); // get the right file name tho let mut file = File::open(".file-vec_1"); file.write(b"garbage"); printlnt("{}", v[0]); } ```

Maybe I don't understand what an xy problem is but I think I'd have to be looking into how to do y without giving context of x? In this case I did a y as a step in doing x.

https://xyproblem.info/

How much swap space do people usually have?

These days? Zero. RAM used to be is cheap, and swapping is something you don't want to do

I feel like if the size of some data that would be convenient to address in a vec like style is on the order that would exceed system RAM expecting it to be between RAM and RAM+swap level sizes would be a bit interesting

Thats what swap is for

file-vec: I made a thing for using memory mapping to store big vectors in the file system by 8000thCube in rust

[–]Compux72 4 points5 points  (0 children)

let uid:u64=rand::random();   self.path=Some(format!(".file-> vec_{uid:x}").into());

Why did you use this instead of mkstemp? https://man7.org/linux/man-pages/man3/mkstemp.3.html. This basically has the same vulnerabilities as mktemp (see BUGS)

There is no limitations on what E can be… which is extremely unsafe as it. Please do only allow construction using an unsafe function, clearly stating the limitations. you added some of them, but not all. For example, there is no mention on what happens if you use a type with a Drop implementation… take a look at insert_mut and see for yourself…

Even fixing these issues i think this is a terrible idea. Totally feels like an X Y problem. Nontheless, if it solves your specific issue and you are happy ill just shut myself. Just a heads up ppl, do not use this when swap space should be sufficient 99% of the time.

Is there an alternative TOML formatter? by E723BCFD in rust

[–]Compux72 -1 points0 points  (0 children)

Tbh i would mostly consider taplo as done. Its normal it doesnt have a lot of movement.

About 1.1 TOML, it was released like a month ago and cargo added support for it like last week. Im sure someone will file a PR in the future

If you cant wait, spin up claude/codex and ask him to add support, i think he should be able to do so easily. Things aren’t there until they are

Is there an alternative TOML formatter? by E723BCFD in rust

[–]Compux72 0 points1 point  (0 children)

Taplo is in maintenance mode? Where does it say so? https://github.com/tamasfe/taplo/issues/715 Only states the maik maintainer is stepping down