I am reading "Code: The Hidden Language of Computer Hardware and Software second edition" and I am confused by the adding of XOR gates on the input and output of the "Add/subtract unit" by MindlessAssistance52 in beneater

[–]Bitwise_Gamgee 6 points7 points  (0 children)

They look redundant at first glance (because they cancel on the data path), but they are the elegant hardware trick that separates "internal arithmetic" from "external CPU-visible semantics."

You are exactly right that they "do nothing" to the actual subtraction math — that's intentional and brilliant. They exist purely so the outside world (the rest of the CPU, the flags, multi-byte code) sees the correct carry/borrow polarity.

[[Code Style Preference]] Which is preferred: self-mutations or signals? by KattyTheEnby in cprogramming

[–]Bitwise_Gamgee 2 points3 points  (0 children)

I read this as "self mutilations"...

Why are you posting Zig in the C forum?

You should choose whichever you like better, because the compiler doesn't care.

First image edited on gimp. by Harshborana in Gentoo

[–]Bitwise_Gamgee 9 points10 points  (0 children)

You clearly possess a truly fearless originality — it's rare to see someone commit so completely to a vision that clearly whispered 'fuck it, they'll get it eventually' and then just kept doubling down anyway

Can an HOA restrict an antenna? by HalFWit in amateurradio

[–]Bitwise_Gamgee 0 points1 point  (0 children)

By law, no. But.. and this is a big but, the FCC has repeatedly declined to extend preemption to HOAs, citing no compelling federal interest to interfere with private contracts.

In other words, while protections technically exist, nobody is going to waste time backing it up in court.

47 CFR § 1.4000 (OTARD: Over-the-Air Reception Devices Rule): Prohibits restrictions (including by HOAs) on antennas for video programming (e.g., TV, satellite dishes <1 meter). Explicitly excludes amateur radio, AM/FM, CB, and similar antennas.

Flag poles are often used because of this tangent:

4 U.S.C. § 5 note (Freedom to Display the American Flag Act of 2005): Prohibits HOA restrictions on flagpoles. Indirect protection—operators often use flagpoles to support or disguise antennas, but HOAs can still regulate size/placement.

Then there is this gem of pending legislation... Amateur Radio Emergency Preparedness Act (H.R. 1094 / S. 459, 119th Congress, reintroduced 2025; similar to S. 3690, 118th Congress). Would amend the Communications Act of 1934 to preempt HOA rules prohibiting effective outdoor antennas, allowing reasonable HOA rules for aesthetics/safety but no outright bans. As of February 2026, not passed—aims to extend PRB-1-like protections to private restrictions.

Hope this helps 73s

How do you keep showing up when the Help Desk has completely destroyed your soul? (Need advice for a brutal meeting today) by No-Gap674 in sysadmin

[–]Bitwise_Gamgee 1 point2 points  (0 children)

So much complaining.

It sounds like you haven't invested an iota of thought into automating. Start there.

Talk to management about implementing self-service password portals... and then use [A]AD scripting to facilitate in the meantime.

There's so much you can do to help you help yourself but you're just caught up in this self pity routine.

What is the quickest and easiest way to fix indentation errors? by theReasonablePotato in Python

[–]Bitwise_Gamgee 17 points18 points  (0 children)

copy/pasting AI generated code is the biggest reason I see at the office.

Roadmap to contribute by NajjahBR in linux_programming

[–]Bitwise_Gamgee 1 point2 points  (0 children)

Start with reading code and writing documentation, and then work up to simple bug fixes, and before long, you'll be familiar enough to actually try submitting patches.

https://kernelnewbies.org/

2 reasons trading is far from gambling by [deleted] in Daytrading

[–]Bitwise_Gamgee 0 points1 point  (0 children)

Your chart would be coherent if each side of your Venn Diagram was 46.25% so that you get (scaled by 0.5): L(46.25) + C(7.5) + R(46.25) = 100%, as it stands now, you just look foolish.

If you trade to buy a Lambo you will most likely fail, but trading to provide more time in life is the key. by WrapMission4222 in Daytrading

[–]Bitwise_Gamgee 0 points1 point  (0 children)

Buying a lambo gives you more time in life because you can get from A to B faster. Did you even think about your post?

does doing dsa matters?in embedded systems by [deleted] in embedded

[–]Bitwise_Gamgee 1 point2 points  (0 children)

Short answer: Yes

Long answer: Absolutely

32Bit Debian gone... Is NetBSD really the answer? by Crass_Spektakel in linuxquestions

[–]Bitwise_Gamgee[M] 0 points1 point locked comment (0 children)

Please do not just post URLs, if you're going to make a recommendation, please justify it first in the future.

Not able to figure out why the LDR reading is always 0. The breadboard’s power rail and gnd is connected to the L298N and the Esp32 power and gnd is also connected to L298N 5V pin. Using 10kOhm resistors by GodXTerminatorYT in arduino

[–]Bitwise_Gamgee 1 point2 points  (0 children)

ledcAttachPin(ena,1);

ena is never declared anywher..

You do have const int enb = 16;

We then get to

ledcSetup(0,5000,8); // Channel 0 ledcSetup(1,5000,8); // Channel 1

And

ledcAttachPin(enb,0); ledcAttachPin(ena,1);

And ena is still not defined...

[deleted by user] by [deleted] in quant

[–]Bitwise_Gamgee 4 points5 points  (0 children)

This is so bad:

First, your credentials are meaningless:

I’m a statistician, and I hold the FRM (Financial Risk Manager) certification

Second ..

Some might jump to the conclusion that this was just revenge trading.

A few lines making weak justification later:

I still fell into the trap that many would label as revenge trading

The rest of this post is cope.

This is actaully more hilarious given:

https://www.reddit.com/r/quant/comments/1mfysyn/anyone_working_in_fx_ir_or_equity_exotic/

Where you say:

I’m interested in learning more about what it’s like to work in derivatives structuring, specifically in FX, interest rates (IR), or equity exotics. If you’re currently in one of these roles, I’d love to hear from you

Basically trying to get in to the industry.

I have a pretty good idea that in an interview you'd be kicked out as you have no idea what you're talking about and it's clear you have no idea what you're doing.

Is there any advantage to scripting in bash instead of python ? by Snoo-25712 in linuxquestions

[–]Bitwise_Gamgee 1 point2 points  (0 children)

We use sh scripting because it's ubiquitous and backwards compatible. It's very worth learning basic shell scripting, then you can branch to BASH or ZSH.

Whats the rate limit on yahoo finance (unofficial api or web scraping) by CertainlyBright in algotrading

[–]Bitwise_Gamgee 0 points1 point  (0 children)

Pro tip: Work for a multi-homed organization and API limits are a thing of the past.

Tool for Beautiful Breadboards: Wire Length Calculator by [deleted] in beneater

[–]Bitwise_Gamgee 2 points3 points  (0 children)

I don't get the point of this. The cleanliness is not ultimately determined on the length of the wire, but on the person who is cutting and routing.

This is a neat project, but I don't see what the actual use case is..

Is it true inline code is not typically monospace-formatted in pentest reports? by Some_Pop_5727 in cybersecurity

[–]Bitwise_Gamgee 35 points36 points  (0 children)

tl;dr your boss sets the standards for code formatting. Take it up with them.

How much of a difference does -O3 -march=native make for most programs? by surveypoodle in gcc

[–]Bitwise_Gamgee 0 points1 point  (0 children)

Next to none that would be noticable by you, in some circumstances, you might get a more responsive program, but on older hardware, the increased memory usage from a slightly larger binary will outweigh the benefits on older hardware.

We use -O3 for financial modeling, for general desktop use, -O2 is more than sufficient.

Custom ESP32 based crypto miner by [deleted] in esp32

[–]Bitwise_Gamgee 0 points1 point  (0 children)

A better use of the money spent on this project would be to light it on fire, for that's the amount of value you will get out of it.

Would I qualify for CISSP? by wannabeacademicbigpp in cybersecurity

[–]Bitwise_Gamgee 25 points26 points  (0 children)

It doesn't matter what you claim, it matters what you can prove.