HN user

yinser

550 karma
Posts1
Comments149
View on HN

Promoting good habits is good but this is health advice from an unlicensed commenter to say rice and beans is better than taking a statin. Consult your doctor if you’re curious what to do.

Every day I am shocked that books in the public domain on Kindle don't have X-Ray enabled. I am unable to find a copy of War and Peace for instance with X-Ray so I can keep track of all the characters and places. I'm not saying the world isn't going to shit but AI can help fill in feature gaps that the big-box developers have not bothered with.

You are directionally correct but the top of the line chisels are in fact hand made in Japan and I suspect the same for knives. Lee Valley and some other higher end manufacturers make some damn fine chisels but chisels are hand tools and I would guess 9/10 woodworkers who use chisels will choose hand made Japanese chisels over any factory manufactured tools.

If you don't see the contradiction in JPL having an active research project to put a radio telescope on the moon and your original statement then I guess we'll have to agree to disagree.

Thank you again, I'm not able to determine if any of this is contrived but it's turned into a great teaching opportunity. I am highly impressed with Rust. The compile error looks extremely expressive of the core issue. I'm also new to zig if you can tell but this has helped me position the two languages and their goals better.

Thank you for that explanation. In the original blog post an example is shared of reusing a buffer, and I was curious how Rust would handle that scenario. Perplexity suggested the following:

// Use a mutable slice to represent the buffer:

let mut buffer = [0u8; 16];

// Read into the buffer:

let n = socket.read(&mut buffer)?;

// To move the partial second row to the beginning, you'd use safe operations like:

let second_row_start = 7; // Index where second row starts

buffer.copy_within(second_row_start.., 0);

// Then read more data into the remaining space:

let remaining_space = &mut buffer[9..];

let additional_bytes = socket.read(remaining_space)?;

Is this idiomatic for Rust?

Is it possible for the rust compiler to statically determine if two memory regions will overlap at compile-time, especially with complex pointer arithmetic or when pointers are passed as function arguments? It would be super impressive if so.

The author and the reviewer universally want "good code" but how often is that defined for any project? Clear definitions of what is important to your team and your code base would alleviate a lot of these antipatterns.

No Salt 2 years ago

If life is a river and your heart is a boat

And just like a water baby, baby born to float

And if life is a wild wind that blows way on high

Then your heart is Amelia dying to fly

Heaven knows no frontiers

And I've seen heaven in your eyes - Mary Black

Hardware is always a leading winner in tech super cycles followed by larger wins by software. NVIDIA was always going to lead market gains with AI before software catches up. It’s been this way with the personal computer, internet, and mobile super cycles.

Greeks were cooking with gas (from the paper): “However, we note that the degree of manufacturing precision is remarkable, with standard errors in hole positions of only 0.028mm radially, and 0.129mm azimuthally. Budiselic et al. quote a standard deviation for their individual position measurements of 0.037 mm, so a good deal of the radial error may come from the measurements of the X-ray images themselves.”