2,473 karma · joined Nov 26, 2015 (11y ago) · 539 submissions
comment 1mo ago · link · parent
The job of a programmer is partially to automate away the current job of a programmer, and we've been successfully riding that curve at least since the days of punch cards.
comment 1mo ago · link · parent
float constant(void) {
return 3.1f;
}
And can get a handful of different results. I trimmed the function setup and teardown to simplify things.Option 1 (loading high 16 bits and low 16 bits, then moving to fp register):
movw r3, #26214
movt r3, 16454
vmov s15, r3
vmov.f32 s0, s15
Option 2 (hardcoding the hex value into program text and loading it into r0 via r3, no specific fp conversion): ldr r3, .L3
mov r0, r3
.L3:
.word 1078355558
Option 3 (similar to 2, but using the load for SIMD and FP registers): vldr.32 s0, .L3
.L3:
.word 1078355558comment 5mo ago · link · parent
I don't think you understand macros if you think a breakfast of yogurt, berries, and milk is avoiding sugar. Berries are mostly sugar, and lactose is a sugar which makes up a significant portion of yogurt and milk's calories. Your breakfast is close to 50% sugar. I would hate to see what the macros look like when you're not "avoiding all sugar".
Also 150 calories of whole milk is 8 fl oz. How big is your morning latte? Milk is a great food for bodybuilding, because it's easy to consume a bunch of calories without feeling that full. This makes it less good when you're trying to lose weight.
comment 5mo ago · link · parent
What? This is so wrong I'm confused how it could have possibly made it in. As a 5'7" guy, I was a M at 145, and still an M when I hit 175, though at that point I was close to an L. There is no way I was 3 separate sizes during that time
comment 9mo ago · link · parent
A status symbol will easily run you $1000/mo. I currently pay $350/mo (including cost of capital), and I don't know how I would pay less for a car that's not actively falling apart. Chevy Spark, manual transmission, $7k KBB value, averaging 500 miles per month.
comment 10mo ago · link · parent
> Therefore, an ideal antenna should consist of a 22.12 metre long wire, but by convention fractions of λ-lambda (λ/2, λ/4, λ/8, λ/16, etc.) are opportunely chosen.
This sentence is confused enough to be incorrect. λ/2 is generally preferred as an antenna length (standard dipole configuration) because it will resonate at the appropriate frequency with desirable standing wave characteristics (current maximum and zero voltage at input, voltage maximum and current minimum at ends). λ/4 can be used as a half-dipole, but it requires a ground plane to resonate properly. There are also arguments to be made for a 5λ/8 antenna, but none that I'm aware of for λ/8 or λ/16.
In practice for small antennas, physical length and electrical length are only tenuously related, so it's a matter of creating a circuit that acts like an antenna of the chosen length.
comment 11mo ago · link · parent
comment 11mo ago · link · parent
comment 11mo ago · link · parent
Is there a plan to change this? Building on Electron should make it manageable to go cross-platform. 2026 will be the year of the Linux desktop, as the prophecies have long foretold.
Off-topic, but Kernel refers to https://www.onkernel.com. A bit of an awkward name
comment 11mo ago · link · parent
comment 1y ago · link · parent
And yeah, it turns out that mammals can absorb oxygen through their butts. Weird
comment 1y ago · link · parent
I read "in 2x time you can access 8x as much memory" as "in 2x time you can access any byte in 8x as much memory", not "in 2x time you can access the entirety of 8x as much memory". Though I agree that the wording of that line is bad.
In normal big-O notation, accessing N bytes of memory is already O(N), and I think it's clear from context that the author is not claiming that you can access N bytes of memory in less time than O(N).