* Posts by _LC_

891 publicly visible posts • joined 22 May 2018

Page:

World's largest heap of untreated nuclear waste needs more bots to cart around irradiated crap

_LC_
Alert

Re: Zero point

We already have clean energy that costs a lot less. The only reason this is being boycotted (by putting taxes on foreign products and keeping the prices high; by inventing nonsensical new regulations, which punish you for using them) is that they work best DECENTRALIZED. The latter implies that the big companies, with all their corruption and huge profits going into the pockets of those who never moved a finger, would become superfluous and the "little man" would make his/her own energy.

_LC_

Re: Holiday at Windscale '74

There are no such clean plants. Whatever made you put that into my mouth???

Among other "niceties", they spit out lead and mercury.

_LC_

Re: Holiday at Windscale '74

When a technology requires you to store waste safely for much longer than our species is in existence and that waste has proven to eat itself through everything in time, then there cannot be any "clean nuclear energy" by definition.

_LC_
Joke

Remember the good old times when people used to look funny due to inbreeding?

The times, they are chhhhhhannnging...

Revealed: The 25 most dangerous software bug types – mem corruption, so hot right now

_LC_

Sometimes it is as simple as setting different linker options (which you do anyhow). There are debug versions of the std libraries. Among other things, they spit out garrulous warnings when you access elements out of bounds and such.

_LC_

Re: @_LC_ Unfair C++ bashing

This simply implies that there are a lot of things you can't do with those languages then. Chances are, what they are capable of doing is only due to underlying C routines.

This is a silly discussion. Nobody denies that you can shoot yourself in the foot using C++. You don't have to, as there are alternatives and more so - it's deprecated.

_LC_

Re: Oh but it can

You delegate the work to an unprivileged process and retrieve a "clean" result in the privileged one.

_LC_

I can do "everything" with it.

I see others starting of with a project and that very project becoming bigger and more versatile, until they hit a barrier. Then they - all of a sudden - have to stitch up something terrible, just to keep their project going. Those solutions are often "a turd" out of the horror-cabinet of programming, falling apart when an atom shifts in the wrong direction...

_LC_
Facepalm

Consequently, your vision for an optimal programming language corresponds to a set case for toddlers.

"In C++ it is easy to copy data off the end of an array."

That's like saying that it's easy to stick the fork into your eyes. Not the common use, I reckon.

"You can memcpy() with a std::vector as the source and/or target without any comment from the compiler or RTL."

No kidding, it's a C function. ;-)

"There are ways to do an unsafe array copy in C# but they are esoteric"

Ah, stoopid people are not into esoteric, I get it...

Besides, instead of doing array2 = array1, using memcpy for copying arrays is not crazy???

"other languages have better protection"

And there we are again in the crawling box. Consequently, the code your language calls "behind the scenes" is typically written in C/C++.

_LC_

Re: Unfair C++ bashing

from: https://embeddedartistry.com/blog/2017/8/2/an-overview-of-c-stl-containers

Standard Container Thread Safety

I want to share with you some relevant points regarding container thread safety, as many embedded systems will likely require sharing objects across threads. The following general thread-safety rules apply:

All container functions are safe to be called concurrently on different objects of the same container type (i.e. it is safe to use two different std::vector instances on two different threads

All const member functions can be called concurrently by different threads

Containers can be safely read from multiple threads if no thread is making asynchronous writes

Different elements in the same container can be modified concurrently, except for the elements of std::vector<bool>.

If an object is written to by one thread and read by other threads, the object must be protected

In general, iterator operations read from a container, but do not modify it, so they are thread-safe

Container operations that invalidate iterators are NOT thread-safe, as they modify the container

The most important detail to keep in mind: if you are modifying the container in multiple threads, you will need to protect that container to prevent concurrent access. For more information using containers in a thread-safe way, see Implementing a Thread-Safe Queue using Condition Variable

Also, Boost provides a selection of lock-free container alternatives which you can consider for multi-threaded use cases.

_LC_

Re: Well the problem with C++ is...

Even worse is the C casting. This is being(/has to be) used a lot in C. It's completely blind. If the type of the target changes (for whatever reasons), nobody will complain.

This has been cleaned up greatly in C++. Most casts in C are not required in C++. The few you need are usually type safe and checked at compile time.

_LC_

Re: std::spaceship

It's one for. This is for writing containers and not duplicating all the comparison operators. As a user you will not come in contact with it.

_LC_

The std::string class can return a null-terminated string for you. This is guaranteed to work (no memory allocation). You can test the string for emptiness in various ways. The string class stores the length.

You are basically criticizing C and blaming this on C++, as you are talking about C interfaces. You have to feed those interfaces the same way from Pascal; no difference there.

Since C++17, there's also the std::string_view class, which is a "low cost" wrapper to keep arrays safe, even C strings.

Again, you can do things wrong if you want, but only if you ignore all advises.

_LC_

Re: Unfair C++ bashing

This is because you can't write the underlying code (of their libraries) in that language yourself. This limits them very much.

As stated before: C++ is not for bad programmers. It won't hinder them from doing stoopid things. I can't see that as a downside, however. Advertise Rust as a language for bad programmers then. This would be more honest. ;-)

_LC_

Re: But what happens when you need performance

Not having such libraries is even more likely for other languages. In fact, when it comes to high performance the air becomes very thin.

_LC_

Re: Unfair C++ bashing

That's why we use containers and iterators in C++. ;-)

_LC_

Re: Unfair C++ bashing

It comes from people moving from C to C++ without changing their programming much.

_LC_

See my post (reply) somewhat above this

^

|

there

_LC_
Alert

Oh but it can

Oh but it can, by letting it being handled by a process with limited access. You then only take a "clean" (= well-defined) return and operate on that. Thus, even if your input manages to corrupt the process that is processing it, it will find itself in a cage, unable to escape or do anything harmful.

This is common programming practice in high security environments.

_LC_

Re: But what happens when you need performance

You have the same issues in every language. For that you will then need a (thoroughly tested) library, which does that "magic" while being fool-proof to use.

C++ has the advantage of having "templates" here. This means that you can use thoroughly tested code WITHOUT any negative performance impacts.

_LC_
Stop

Unfair C++ bashing

Yes, you CAN do lots of things wrong in C++. You can even shoot yourself in the foot with BASIC, when POKEing around in memory.

People seem to always point this out with C++, as if wrong programming practices would result in good code with a different language.

Unless you are developing a library, hardware driver or writing embedded code, there is NO NEED (and it's deprecated) to access memory locations directly/indirectly. All those buffer overruns and the like come from people writing C code in C++. As stated before, you can do that. You can crap around in pretty much every language.

It's not helpful that people who "never really got on the green side of C++" are promoting Rust now.

COBOL: Five little letters that if put on a CV would ensure stable income for many a greybeard coder

_LC_

Re: A stable income – yes, but ...

I didn't imply that the programmers where being "washed upwards" in those companies. Of course, they are not. People who can barely bind their shoes usually are.

_LC_

Re: Computer science?

"Boring as hell though."

Yup. :-)

_LC_

Re: A stable income – yes, but ...

You usually find COBOL in companies with strong hierarchies and the habit of washing up the most incompetent ass-kissers (banks and such).

_LC_

Re: A stable income – yes, but ...

There's somebody putting the bridle on the horse from behind. ;-)

I don't want to work in a company where the earth is a disc and the biggest dinosaurs are washed up.

_LC_

Re: And with Freedos and Dosbox around...

I wouldn't worry about that too much. Rewriting the code from scratch (in another language, of course) is usually easier than getting into the existing COBOL code ;-)

_LC_
FAIL

A stable income – yes, but ...

Would you enjoy working there? Might you even hate it after a while?

As for me, I can safely assume the second.

Too bad, so sad, exploit devs: Google patches possibly several million dollars' worth of security flaws in Android

_LC_

Also, your Qualcomm BLOBs are still the open barn door.

_LC_
Alert

Flash Media Framework

Dear journalists,

it’s been baptized the "Flash Media Framework" some time ago. Please stick to proper naming.

New York City sues T-Mobile US over 'abusive sales tactics'

_LC_
Alert

I hate to repeat myself, but in this case ...

Think of the "Deutsche Telekom" as crooks. They are aligned with the mob - and their offspring came out just the same.

Germany here.

Another sign of the End Times: Free software guru Richard Stallman speaks at Microsoft HQ

_LC_
Thumb Up

Light is not afraid to illuminate darkness

Light is not afraid to illuminate darkness. It’s darkness, which has to hide.

Uncle Sam is Huawei out of line with these hacking attacks, patent probes, Chinese mobe maker sighs

_LC_
Flame

It's da mob

It’s not only that Huawei is up against “da mob”. I think they are very much aware of that. It is the way in which other countries cower before this abomination that makes you despair.

Huawei new smartphone won't be Mate-y with Google apps as trade sanctions kick in

_LC_

Re: And if Huawei allowed unlocked bootloaders

I didn't think this topic would be considered "sensitive". However, since the chain dogs were obviously left off the leash, they seem to be already wound up this high. That's a good sign. :-)

_LC_
Stop

Re: Google has become a lot like Microsoft in that respect

Using a search engine is beyond your capabilities?

https://arstechnica.com/gadgets/2008/11/google-admits-to-using-undocumented-api-in-google-mobile-app/

https://www.engadget.com/2008/11/26/google-yeah-we-did-use-undocumented-api-so-what

_LC_

Re: And if Huawei allowed unlocked bootloaders

Huawei used to allow unlocking of the boot loader in an easy fashion. Why do you think they stopped? In the campaign against Huawei, can't you see mafia methods? Was there anything legitimate in this campaign so far? There's your answer.

_LC_

Re: Google has become a lot like Microsoft in that respect

Here comes the anonymous prankster again: "And still you haven't said what those undocumented API calls are?".

My, my - we've found a new Sherlock right there.

_LC_
Facepalm

Re: And if Huawei allowed unlocked bootloaders

They are there to protect the company from "unlawful" competitors. Those could simply break the devices and ask for refunds in masses.

I didn't read most of your comment, as you obviously didn't read mine.

_LC_
Unhappy

Re: And if Huawei allowed unlocked bootloaders

... and masses of paid people breaking phones deliberately in an attempt to hurt the competition. That's how the mob in the US works.

You can still root your Huawei phones. When you do, it's on your own risk, however.

As long as there are companies and secret services that work with mafia methods, you can't afford such liberties. They would be their downfall if they did.

_LC_
Thumb Down

Re: Google has become a lot like Microsoft in that respect

That's the wrong way round, hence the 'learn how to read'. The Google Apps are using undocumented API calls. This is like Microsoft does and did it.

Are you a troll?

_LC_
Paris Hilton

Re: Google has become a lot like Microsoft in that respect

You are telling me that the API for the Play Store/Services is well documented. I'm telling you that roses are red and sometimes white or even pink.

Learn to read.

_LC_
Stop

Google has become a lot like Microsoft in that respect

Remember when it came out that Microsoft’s own software did use undocumented APIs, giving them an advantage over everybody else (it still does)? Google’s apps do just the same. They are "non-standard" in many ways and create tons of problems when you have to deal with them.

Screw Microsoft and screw Google! I hope we can rid us of both of them quickly.

Want an ethical smartphone? Fairphone 3 is on the way – but tiny market share suggests few care

_LC_
Alert

Re: “Fair” with a SoC from Qualcomm?

I don't think you got the jest of it. Qualcomm is well-known for using illegal practices to harm both the competition and consumers. Furthermore, Qualcomm is known for “letting in the bad guys”. Which means that if you're a journalist or person otherwise in danger, this gives them all they need to let you end up like Khashoggi.

Lastly, Qualcomm gives a toss about the FairPhone. Hence, there's only an outdated Android with no chance of updates.

Could it get any worse?

_LC_
Thumb Down

“Fair” with a SoC from Qualcomm?

Isn't that a bit like “humane raping”?!?

IBM, Intel tease 2020's specialist chips: Power9 'bandwidth beast' – and Spring Crest Nervana neural-net processor

_LC_
Unhappy

Same problem as Intel

With 14nm until Anno Domini (202X) they won't be exciting anyone.

Microsoft cofounder Paul Allen's personal MiG-29 fighter jet goes under the hammer

_LC_
Thumb Up

I gave you an upvote ...

... nonetheless, this is like showing a picture of Angela Merkel and Heidi Klum and adding the subscription: "A. Merkel and H. Klum (Krauts)". One would assume that the Cold War would end eventually. ;-)

_LC_

I don't doubt that

If I were to christen you "nag" and your mother "beaver", this might perhaps even make sense. It doesn't make it any better though. ;-)

_LC_
Pint

Yup

Those are the NATO (= US) made up terms for those aircraft. Needless to say, that the Russians (and others) don't use them.

It's 2019 – and you can completely pwn millions of Qualcomm-powered Androids over the air

_LC_
Holmes

Keep in mind

Keep in mind that they are still hammering on Huawei. All the while, Cisco and Qualcomm keep their "open door" policy.

Need to automatically and securely verify a download is legit? You bet rget this new tool

_LC_

Re: Not a panacea

It goes without saying that there should be various mirrors, which do checking.

Trump continues on the warpath: Now US tariffs cover nearly everything arriving from China

_LC_
FAIL

In case nobody noticed: The US of A is stone-broke

… and China already owns half of it. ;-)

Page: