Forgot your password?
typodupeerror
User Journal

Journal Journal: How to improve C/C++ code quality, random thoughts

I am thinking about the following concept. Take doxygen comments and extend them as follows.

1. Permit identification of pre-conditions for functions (what has to be true when the function is called)
2. Permit identification of post-conditions for functions (what is intended to be true when the function exits)
3. Permit identification of hints about what kernel operations are being used by that function

Comment Re:that's a dumb take (Score 1) 76

You know most agricultural work in the US DOESN'T require importation of menial workers, right?

According to grok by value, only 15-25% of farm production requires menial labor, eg migrant workers.
Robotics are likely to significantly reduce that.

My point was that it's just a silly take to say "look at all this land that could have been used for something else" (presumably employing more people) when in fact most of the large swathes of agri land in this country barely employ anyone.

It's like complaining about data centers "using up" 17bn gallons of water when golf courses take something north of 500bn gallons and not saying a word about that.

Comment The Age Assurance I want... (Score 1) 41

...is the legal framework that I can hand my logins and all digital accounts to my heirs and assigns upon my death.

I'm going to provide them all the passwords etc regardless but I'd very much like the legal framework to recognize this.

Honestly my biggest challenge is keeping track of all the logins and remembering to update "that document" when I make changes. It's another reason I refuse to (only) use biometric unlocks on devices. There are plenty of use cases I can imagine where I might need someone to unlock something and I'm not present.

Comment Re:Google Social Credit (Score 1) 41

Google "Social Credit"

A complete social credit score on each google user.

Factors:

Smoked weed in a state where it's illegal? Got arrested? Got convicted for reckless driving or driving under the influence. Behind on a few loan payments? Got fired for cause? Filed too many lawsuits against employers or corporations? On a terrorist or no-fly list? Complained to a representative of congress which is a party you despise and pissed them off? Went to a protest, detained, but released? Complained to your employer about their shitty policies?

No way Google would do that. The potential liability for making mistakes would be enough to make them run screaming all by itself, even assuming there's no risk if the information is accurate -- which is at least not clear and probably not true for many of the things you listed.

Google is leery of even having such information, and definitely isn't going to be giving it out to anyone who doesn't show up with a subpoena or a warrant.

Comment Re:A Brave New World (Score 0) 41

Soon to be followed by political beliefs, religious beliefs, criminal record, income, credit score, social credit score, etc.

Nothing could possibly go wrong.

Slippery slope fallacy. Given that this is strictly opt-in, for children only, under parental control, there's absolutely no reason to think that any of the rest of that is soon to follow.

Comment Re:Not banned but not allowed either (Score 2) 94

This must be a difficult to stand for gnu to take at this moment, but I like its nuance.

I find it interesting that their intention is clearly based on concerns about IP ownership, unrelated to quality. They're not banning "AI slop", they're banning code with unclear ownership. They clearly want to avoid a situation where they take a code contribution which the AI model owner might claim to own, or which owners of the AI's training material might claim to own. If those claims were upheld, it would mean the contributor didn't own the copyright and therefore couldn't license it under the relevant open source license.

I think this will ultimately prove to be needless caution. I think courts will end up deciding that AI-generated code is no different than code generated by any other sort of code generation tool, and that the copyright is held by the person using and directing the tool. But it's definitely not impossible that things will go a different way.

Comment Re:Trained on human written content... (Score 1) 78

This. Too many free-market capitalism anti-government evangelists miss that most of the 'bad'/immoral bits of behavior by producers is completely natural and rational. A cartel is just effective cooperation.

The point is not to get rid of capitalism or free markets, but to acknowledge the strengths and weaknesses and effectively channel those. Given where Western developed countries are today, that means more regulation (and enforcement) and even nationalisation of certain aspects of society.

I disagree with your conclusion. We don't need "more", we need "better"... and a key aspect of the "better" we need is that we need more focus on identifying and addressing regulatory capture.

Anti-trust law is largely a bust. You can't point to any case in American history, for example (I'm guessing you're not American, but I reach for the history I know; if you have good counterexamples from elsewhere I'd love to hear about them), where there was an abusive monopoly and the government stepped in and fixed it. What happened in every single case is that market forces were already taking down the monopoly by the time the government took action. I don't think anti-trust law is bad, per se, I think it defines some useful boundaries and probably warns a lot of companies away from abusive behavior just by defining clearly what is abusive. But I think the effect is ultimately just to decrease the amount of abusive behavior that happens before the market takes the monopoly down, which would happen even without the laws.

The real exception, the case where you get long-running, entrenched monopolies that the market doesn't eventually undermine, is when government regulation creates or maintains the monopoly. And the more regulation you have, the easier it is for industry to get that regulation tweaked in its favor. We need regular and intense scrutiny of possible cases of regulatory capture, and then we need to refine the regulatory regime to prevent capture -- the best way to do that in most cases is simply not to give regulators the type of power that businesses can exploit. Note that I said "type", as in "kind", not as in "degree". I'm not arguing for weak regulations, I'm arguing for regulations that primarily focus on shining a bright light on corporate operations, rather than regulations that control or restrict.

The primary role of regulation in business operations should be to ensure that companies operate with honest and full disclosure, of their financials, of their labor practices, of their product quality and characteristics, etc. Note that it's also important to ensure that the regulatory burden of information disclosure doesn't become another form of capture, preventing the entry of small players who don't have the necessary expertise to fill out all of the necessary forms.

Nationalization is its own can of worms, unrelated to regulation. It's generally a bad idea, though. In theory it seems like a good idea to eliminate the profit-taking that private enterprise necessarily engages in, but the savings that provides are basically always swamped by inefficiency created by the reduced need to be competitive.

Obviously, there are exceptions; industries with natural monopolies, where control-oriented regulation or even nationalization make sense. Most of these are near-universally government-run already, such as road networks and air traffic control. Utilities, however, aren't really natural monopolies, even though they're generally treated as such. The last-mile delivery of power, water, etc., are natural monopolies (we don't want five water companies digging up our streets to install their own pipes), but the industries as a whole aren't, and shouldn't be treated that way.

Above all, I think market regulation should focus on enhancing transparency (which is what prevents bad behavior) and removing barriers to competition. Markets are the most powerful mechanism we've found for reducing poverty and increasing wealth. Harness them, don't hobble them.

Comment Re:Trained on human written content... (Score 1) 78

It has been known for a long time that the behavior exhibited here is sub-optimal.

Only in certain sorts of games. Your point is that this particular case is one of those games, which makes sense to me. My point was more about the higher-level question of whether AI acts this way because it emulates humans or because this sort of behavior is inherent to cooperating/competing entities trying to maximize advantage; I lean toward the latter explanation though it's obviously hard to untangle.

The fact that these LLMs aren't smart enough to understand that such collusion and backstabbing is ultimately counterproductive doesn't affect my point. In fact, humans also don't generally understand that such collusion and backstabbing is counterproductive; the research results are subtle and non-obvious. The emergent effect we see in large-scale, long-running enterprises is that they settle into patterns of fairly forthright, honest behavior because that's what keeps the cash flowing decade after decade, but these kinds of shenanigans are common among humans who don't have that long-run institutional experience.

Comment Borrowing trouble (Score 1) 76

Increasing a country's human capital, its supply of skilled labor, is never a bad thing. It increases the country's capacity and lowers its costs. This isn't always great for people already in the profession in question (but it's not always bad for them, either).

Yeah, the wage spike will end and wages for those professions will go back to normal, maybe even dip somewhat, but supply induces demand. If the skilled labor portion of construction costs less, either in wage reductions or in availability increases, that motivates more construction -- and if we can get our collective heads out and fix the various regulatory obstacles blocking housing construction around the country, and especially in the cities, making use of that new supply of skilled labor for a housing construction boom would be great for everyone.

This is article is just someone looking to find clouds amongst the silver linings, and invent them when they're hard to find.

Comment that's a dumb take (Score 1) 76

How many people does it take to run a data center after taking up all this property and all this land that could have been used for something else?

You mean like farming, where hundreds or thousands of acres are only "worked" by a handful of people or less? I think there are scores of reasons not to cover the world in data centers better than "but they take up space".

Comment Re:Trained on human written content... (Score 5, Insightful) 78

...reflects good old-fashioned human values.

The incentives to collude and backstab predictably result in such behaviors whenever the disincentives are absent or weak. Inasmuch as AI mimics humans, this seems equally predictable.

Alternatively, this is just the normal emergent behavior you can and should expect any time you have groups of entities competing and cooperating.

We didn't evolve to work the way we do because something made us evil, we evolved to work the way we do because it was effective. And that includes both the cooperation and the backstabbing. Being always and thoroughly evil to everyone quickly gets you excluded from everything. Being a perfectly-honest naif means you quickly get taken advantage of by someone slightly less-honest. So the most effective strategy is a well-chosen mixture of cooperation and betrayal, while trying to convince society that honesty and cooperation are the only correct values.

Comment Re:Government based attackers (Score 1) 76

This is reminiscent of the Y2K problem. If things don't get way out of hand it will be because enough intelligent and educated people take it seriously, not because it is much ado about nothing.

Heh. I still occasionally find people using Y2K as an example of "ludicrous sky-is-falling" claims that turn out to be a big nothingburger. That and the hole in the ozone layer and the dangers of acid rain.

What all of those things really are is examples demonstrating that when we decide we care about large-scale problems enough to invest in solving them, we actually can. I'm really hoping that climate change turns out to be another one that we solve before it becomes really bad (it's a little bad now, and definitely going to get somewhat worse, but not really bad), but it's not looking great.

Comment Re:It does it poorly (Score 1) 86

It's been the basis for elite athletes practice routines for years.
Visualization is sometimes mocked by the ignorant, but even the simple act of visualizing EXACTLY what is happening, what you're doing, what moves you're making, how you're moving...all form & reinforce neural pathways, making both the action and the particular precise details easier to replicate.

I wouldn't call this multitasking, precisely, more like a training-based delegation of muscle functions and basic responses 'lower' in the cerebral/intellectual chain. A different part of you is "thinking" (using that word in a very, very broad extent) through the lowest-level protocols of your body's actions, instead of constantly throwing it to your lower brain functions.

Slashdot Top Deals

The solution of problems is the most characteristic and peculiar sort of voluntary thinking. -- William James

Working...