Recent submissions

Comment · 11 months ago
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.
Comment · 1 year ago
You should consider finding a career coach, professional therapist. This level of pessimism can't be healthy.
Comment · 1 year ago
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.
Comment · 1 year ago
I saw the ToC request as a demo of the capabilities, not a statement on the full value proposition. There are a LOT of valuable features in here that are not offered in Kindle or other ebook readers.
Comment · 1 year ago
Comment · 1 year ago
Aaaaaand it’s gone from YouTube.
Comment · 1 year ago
Most factory chisels are not laminations like hand made Japanese ones are. They are just a single alloy.
Comment · 1 year ago
Selection of metal, lamination, presence of a ura (裏), handle material, the ability to make a new handle and attach it to the original metal. A metal chosen for an extreme sharpness may be terribly difficult to sharpen, a metal easy to sharpen may not hold an edge for long.
Comment · 1 year ago
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.
Comment · 2 years ago
Without a doubt speculators will flood this comment either way.
Comment · 2 years ago
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.
Comment · 2 years ago
Comment · 2 years ago
> see tutorial on diffusion > get excited > it's all math in latex > despair
Comment · 2 years ago
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.
Comment · 2 years ago
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?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton