Thursday, December 28
Daily News Stuff 28 December 2023
I Of The Apple Edition
I Of The Apple Edition
Top Story
- If you were looking to buy the latest Apple Watch Series 9 or Ultra 2, you can. (Tech Crunch)
Or will be able to shortly. And perhaps briefly.
Apple has won a temporary stay on the ITC ban from a federal court, while it files its full appeal. That only applies through to January 10, depending on the outcome of other proceedings.
Tech News
- Bought a new router. And 15 bits. Which came in a box.
- You should use a hair dryer when bending your 12VHPWR cables for your new RTX 4090, says power supply manufacturer Seasonic. (Tom's Hardware)
Well, okay.
- You should absolutely not use a hair dryer when bending your 12VHPWR cables for your new RTX 4090, and we never suggested you should, says power supply manufacturer Seasonic. (Tom's Hardware)
Well, okay.
- Is-Prime is a library - available in 70 languages - to determine whether any given number is prime, in constant time. (GitHub)
It's very compact, easily ported, and 95% reliable.
- If you are intrigued by this allow me to present a library that determines whether any given unsigned 32-bit integer is even or odd. (Blabbin')
Since the C compiler had a limit of 16 million lines of code per file, it's written directly in machine code. 40GB of it.As a side note, the program is amazingly performant. For small numbers the results are instantaneous and for the large number close to the 2^32 limit the result is still returned in around 10 seconds. Considering the computer has to read 40 GB of data from disk, map it to physical memory and then let the CPU has a rip of it without many chances of caching is honestly quite mind blowing. For reference, the computer is a Core i5 12600K with 32 GB memory and the files are residing on a M.2 SSD disk. While calculating, the peak read speed I saw from the SSD was around 800 MB/s (which doesn’t really make sense as that should give execution speeds at 40+ seconds, but computers are magical so who knows what is going on).
Just don't let the smoke out.
Disclaimer: Who let the smoke out?
Posted by: Pixy Misa at
05:57 PM
| Comments (7)
| Add Comment
| Trackbacks (Suck)
Post contains 371 words, total size 3 kb.
1
Call me naive, but isn't there a really easy way to tell if a binary number is even? Assuming it's not being represented in floating point, at least.
Posted by: normal at Thursday, December 28 2023 09:25 PM (bg2DR)
2
Normal: yes, look at the least significant bit. In C, you can write something like
if (var & 1) // number is odd
Posted by: Rick C at Friday, December 29 2023 12:14 AM (BMUHC)
3
"Bought a new router. And 15 bits. Which came in a box."
Whoo-hoo, had to back up and reparse that sentence halfway through!
Whoo-hoo, had to back up and reparse that sentence halfway through!
Posted by: Rick C at Friday, December 29 2023 12:14 AM (BMUHC)
4
Gotta say, I'm the sort who is not thoughtful or observant enough to notice the good clever algorithm, and I am quite likely to try to pull together really stupid brute force attempts at whatever.
Then I looked at the Is-Prime library. Well, that explains why the thing is of zero interest in terms of computer science or mathematics.
Posted by: PatBuckman at Friday, December 29 2023 01:55 AM (r9O5h)
5
Something's in the air. This is not the only place I've seen today with links to stuff that makes me wonder if April Fools is early this year.
Posted by: Rick C at Friday, December 29 2023 10:31 AM (BMUHC)
6
There's a fairly simple explanation, if that is pattern driven by something.
Everyone has been driven a bit mad these past few years, and this time of year is just liminal enough to throw a few extra of us off balance.
Full moon was Tuesday.
Dunno.
Everyone has been driven a bit mad these past few years, and this time of year is just liminal enough to throw a few extra of us off balance.
Full moon was Tuesday.
Dunno.
Posted by: PatBuckman at Friday, December 29 2023 03:20 PM (r9O5h)
7
Yeah, the Is-Prime joke seemed a bit obvious, given the 95% accuracy disclaimer.
Posted by: normal at Friday, December 29 2023 09:33 PM (bg2DR)
53kb generated in CPU 0.0532, elapsed 0.1802 seconds.
58 queries taking 0.1728 seconds, 355 records returned.
Powered by Minx 1.1.6c-pink.
58 queries taking 0.1728 seconds, 355 records returned.
Powered by Minx 1.1.6c-pink.