Forgot your password?
typodupeerror

Comment Re:9V, AA and AAA Lithium (Score 1) 37

I love eneloop batteries, but the eneloop bundled charger is trash...

I noticed that as well. I have gotten a better one. But the Eneloop batteries are very good. Shame they do not seem to want to do 9V, but Duracell has some 9V NiHM intended for smoke-detectors and the like that seem almost as good.

Comment Re:embarrassing what qualifies as a programmer (Score 1) 140

Indeed. I'm currently working in the automotive space, where there are lots of tiny embedded controllers to mange everything from engine operations to taillight flashing... and it's almost entirely C++. There's a little C in some pockets, but even then it's generally (a) built with a C++ compiler, and (b) has at least some actual C++ in it, even if it's C, stylistically.

Rust is a great fit, and a big improvement over all of the extra processes that try to paper over C++'s weaknesses when trying to write guaranteed-reliable code (C++ is better than C in that regard). The problem is that we can't actually use Rust in any safety-critical contexts -- even though it's clearly fantastic for those cases! -- because the necessary ASIL certifications are lacking. There are people working on it, though. Maybe it's actually solved... I need to look into the Ferrocene solution and see what it includes and what it will cost us. I strongly suspect that Ferrocene's compiler and libs are completely unmodified copies of the regular Rust toolset, and that what you're paying for is just their certification work. But that's probably just fine... the work needs to be done and someone needs to be paid for it.

Comment Re:embarrassing what qualifies as a programmer (Score 1) 140

C is fundamentally not designed to make avoiding them possible

A software engineer says, "Yes, I've developed techniques for avoiding entire classes of bugs in C, but there are a few types I'm still struggling with." Someone who has not yet developed the engineering mindset immediately comes up with excuses. "We can't do that." An engineer looks for solutions, not excuses. It's easy to tell the difference once you recognize it.

In this case, the answer is better tools, meaning better than C. There is fundamentally no way to get memory safety in C. People have been trying for decades with smarter linters, macros, manual review processes... nothing works at scale. If you have a solution, you should show it to the world and become rich and famous.

Comment Re:I don't currently use Rust (Score 1) 140

Give it a try! See if you can find a solution that I couldn't.

The gist contains a hugely-simplified version of the code, of course but enough to show the problem, in multiple variations. I actually tried a lot of other things, including adding some helper functions but, no matter what, if I have a codepath that returns a mutable ref to the content, the mutable borrow of self is held until the end of the function so nothing else can borrow. The only workable solutions I found were (a) double lookup or (b) unsafe code that creates an additional mutable reference.

Comment Re:Lithium isn't rare, and it is important (Score 2) 37

LiFePO4 is much safer, but has a lower energy density. It's great for in-house battery backup, less so for verhicles and probably a non-starter for planes.

Where traditional lithium batteries spout flames if punctured and lead to thermal runaway, LiFePO4 mostly just spew noxious gases which can be vented and don't cause nearby cells to ignite.

Comment Re:How about they go after friends of Trump? (Score 2) 41

Almost all of those laws do not apply to the president, other federal employees, and in some cases legislators yes but the president largely is except for law that would prohibit him from trading based on his knowledge of confidential information.

This is because every previous president was too honorable to do so, so no one thought it necessary to include the presidency in those laws.

Sadly, the current occupant of the White House is utterly lacking in any form of honor or even basic human decency. As Americans, we should all feel deeply ashamed.

Comment Re:Supremacy Clause of Constitution says otherwise (Score 1) 43

That's not true.

Do you actually believe yourself? This Congress has passed less legislation than any single-party Congress in the last century: Go look it up. In the first year they passed a grand total of 38 bills -- normal is more like 200. And they've repeatedly failed to act when any other Congress would have, either to rein Trump in, or else to authorized the openly-illegal actions that he wanted to pursue and which the GOP clearly supported (e.g. changes to immigration laws to make deportations easier).

The current Congress is one of the most do-nothing bodies we've had.

Comment Re: Pinball machines are still made (Score 1) 51

Other related terms:

  * Pseudo-quotation: Putting a paraphrase or the general "gist" of someone’s argument inside quotation marks, rather than their literal verbatim words. Acts structurally like a quote, but semantically is a summary.
  * 'Fictive Direct Speech (Esther Pascual): The structure of direct speech used to express a non-conversational concept, such as a belief, attitude, or general stance.
  * Constructed Dialogue (Deborah Tannen): Used for "reported speech" - when people "quote" others in conversation, they are rarely reciting a literal transcript. Instead, they construct dialogue to dramatize a stance, represent a general attitude, or summarize a complex argument in a digestible way.

Sneer quotes (also called scare quotes) are similar, in that they summarize a person's stance, but have the distinction of also being dismissive of the person / stance as well.

Comment Re: Pinball machines are still made (Score 1) 51

That's not what "sneer quotes" do.

(And the quotes in the above are neither direct quotation nor sneer quotes, but use-mention distinction quotes, which let the sentence "know" that the thing in the quotes is the word/phrase itself, not what it refers to)

(And the quotes in the above are signaling quotes, to convey that a word is being used in an unconventional manner; it's a "clever" way to distance yourself from the word)

(And the quotes in the above are irony quotes....)

Slashdot Top Deals

FORTRAN is for pipe stress freaks and crystallography weenies.

Working...