Tuesday, 31 December 2024

New top story on Hacker News: Reciprocal Approximation with 1 Subtraction

Reciprocal Approximation with 1 Subtraction
7 by mbitsnbites | 3 comments on Hacker News.
Today's find: You can get a floating-point approximation of 1/x that's accurate to 3 bits with a single integer subtraction instruction. float fast_reciprocal(float x) { unsigned i = *(unsigned *) &x; i = 0x7effffffU - i; return *(float *) &i; } The magic number 0x7effffff accomplishes two things: 1) The exponent is calculated as 253-e, which effectively negates the exponent and subtracts 1. 2) The mantissa is approximated as a 1st order polynomial in the interval [1, 2). Interesting, but perhaps not very useful (as most CPU:s have more accurate reciprocal approximations these days).

New top story on Hacker News: Letting Language Models Write My Website

Letting Language Models Write My Website
4 by ingve | 0 comments on Hacker News.


New top story on Hacker News: App Should Have Been a Website (and Probably Your Game Too)

App Should Have Been a Website (and Probably Your Game Too)
14 by thunderbong | 8 comments on Hacker News.


Sunday, 15 December 2024

New top story on Hacker News: Implementing a simple object system from scratch in Ruby

Implementing a simple object system from scratch in Ruby
10 by metacircu1ar | 0 comments on Hacker News.


New top story on Hacker News: Show HN: Shop Clothes with Models That Match Your Body Shape

Show HN: Shop Clothes with Models That Match Your Body Shape
4 by Deekshana_Reddy | 1 comments on Hacker News.
This is one of those fix a problem you can’t ignore projects. Like most online shoppers, I often found myself frustrated: clothes look great on models but disappoint when I try them on. It’s not the clothes, it’s the body shape mismatch. So, I spent the last few months building TheBodyMatch, a platform where clothes are showcased on models who share your body shape. You get a more relatable and confident shopping experience because seeing is believing, especially when the model reflects you. It’s still early days. Think of this as a beta where feedback is gold. I’d love for you to try it out here: www.thebodymatch.com and share your thoughts. Is this the future of online fashion? I hope so.

New top story on Hacker News: Richard Dawkins: Philosophical Dead Ends

Richard Dawkins: Philosophical Dead Ends
4 by HR01 | 0 comments on Hacker News.


Wednesday, 11 December 2024

New top story on Hacker News: Bankruptcy judge rejects The Onion's bid for Infowars

Bankruptcy judge rejects The Onion's bid for Infowars
25 by pseudolus | 8 comments on Hacker News.


New top story on Hacker News: Show HN: Powerdrill – Leverage LLMs to Simplify Data Analysis

Show HN: Powerdrill – Leverage LLMs to Simplify Data Analysis
9 by joywong | 1 comments on Hacker News.
Powerdrill is an AI tool that enables users to chat with their data to get anything they want to know from their data. It's designed for individuals who need to work with data regularly but have limited data analysis skills. Users only need to input their questions. Then Powerdrill understands user queries, generates Python or SQL code, executes it, and provides answers with valuable insights and visualized data. Powerdrill supports various types of data, including PDFs, Word documents, Excel sheets, TSV files, and databases. It also offers data agents that save users time on repetitive tasks, such as generating reports and presentations with a single click.

New top story on Hacker News: You need 4 colors

You need 4 colors
11 by s4i | 2 comments on Hacker News.


New top story on Hacker News: Astronomy Photographer of the Year 2024 winners

Astronomy Photographer of the Year 2024 winners
6 by helsinkiandrew | 1 comments on Hacker News.


Sunday, 8 December 2024

New top story on Hacker News: Arthur Cravan: The Disappearing Dadaist

Arthur Cravan: The Disappearing Dadaist
4 by apollinaire | 0 comments on Hacker News.


New top story on Hacker News: Insects rely on sounds made by distressed vegetation to guide reproduction

Insects rely on sounds made by distressed vegetation to guide reproduction
15 by tintinnabula | 3 comments on Hacker News.


New top story on Hacker News: Parkchester – The Bronx: Last Stop on the Orphan Train

Parkchester – The Bronx: Last Stop on the Orphan Train
5 by Thevet | 0 comments on Hacker News.


New top story on Hacker News: Show HN: Run10K Trainer – Personalized Training Running Plans for Your 10K Race

Show HN: Run10K Trainer – Personalized Training Running Plans for Your 10K Race
3 by alexdevcodes | 0 comments on Hacker News.
Hi HN! I’m a professional runner and programmer, and I built *Run10K Trainer*, the app I wish I had when I started training. It’s a web and mobile app that generates personalized plans for 10K races, tailored to your schedule, experience level, and race date. After months of development, I’d love your feedback to help make it even better for runners everywhere. Does this sound like something you’d use?