Hacker Newsnew | past | comments | ask | show | jobs | submit | more petiepooo's commentslogin

^-- this


You can blame the ever-increasing complexity of MS Windows for that. My parents are now on Linux, being that the only things they do on it, other than open the occasional email attachment, are all browser-based. It's easier for me to occasionally run an apt-get upgrade remotely than it is to try to keep Windows free of infestations.


Two major areas I would focus work on:

1. concurrency 2. variable naming 3. off-by-one errors


Add me to the list that recommends Energysage for a basic rooftop solar resource.

You didn't mention your state. The regulatory environment differs significantly between states, and determines what the electric company can do, since they're generally state-regulated public utilities. If you can sell excess electricity back to your utility at retail rates, it makes little sense IMO to buy a battery. However, if the utility will only pay wholesale rates for your excess, a battery can be cost effective, depending on your daily production/use cycle.

Also look up "solar value deflation" and understand that, as more people install solar, the value of it will decrease as net metering regulations and connection vs. distribution costs get shifted. Read up on the difficulties people with solar leases have encountered when trying to sell their home. For that reason alone, I'd recommend buying, even if it means a second mortgage or HLOC to pay for it.

I'm personally holding out for more efficient panels, cheaper batteries, and home-scale bio-fuel production for excess energy so I can size my install to support being truly off-grid throughout all four seasons.


Great points, I will definitely look at the solar value deflation data, thanks. Your conclusion may be mine as well, I just want to understand the tech and market well enough to be able to make a good decision when it is time to jump in.


I'm pretty sure this is more feature rich than dnsmasq, but the golang ipkg on the latest OpenWRT release is 99MB. My overlay filesystem started at less than 24MB. This software not for users like us. Perhaps someone will implement equivalent functionality using C or Python libraries for those of us that run by choice in a resource-constrained or embedded environment.


That's going to be the golang compiler - you can cross compile static binaries from your PC that will run on ARM. The final binary size should be a few mb.


Another rust proponent lecturing the world on how they should rewrite everything in rust. yawn


Robert is an expert C/C++ programmer, but understands the problems with those languages, which has led to articles like http://robert.ocallahan.org/2017/07/confession-of-cc-program....

Robert is now a Rust proponent because it works.

From today’s article, I think this is the money quote:

> My sincere hope is that people will at least stop choosing C for new projects. At this point, doing so is professional negligence.


I don't doubt they're a competent programmer, but I do have some doubts that they're an expert in C++. Two reasons why:

1) They made incorrect claims about C++ in relation to Rust before: http://robert.ocallahan.org/2017/02/what-rust-can-do-that-ot... and http://robert.ocallahan.org/2017/04/rust-optimizations-that-...

2) The Mozilla C++ code base is old and very raw pointer/reference heavy and it doesn't seem to be written with safety in mind.

Their wikis also don't have any particularly good security guidelines. Maybe the good stuff is kept private, who knows.

Saying that someone was a distinguished engineer at Mozilla is not saying much about their abilities of writing modern or safe C++.


Hi!

Yeah I made a mistake once. It happens.

If having a PhD in computer science (programming languages), being reasonably smart, and using the language for 20 years (up to and including most C++14 stuff) doesn't make you an expert in that language, then your language is far too difficult.

In fact, C++ is far too difficult and there are very few genuine experts in it. For example, who can explain why using push_back on a vector<map<T,unique_ptr>> is not conformant to the Standard, without looking it up? (I'll save you some time: https://bugs.chromium.org/p/chromium/issues/detail?id=683729...)

There's also a definitional bait-and-switch going on here. C++ proponents use "C++" to mean "the language that lots of projects have been using for 20 years and lots of programmers know" when espousing its popularity. But when necessary, the meaning changes to some "'modern', 'safe' subset of C++" ... that few programmers know well and few projects stick to rigorously. The exact definition of that subset changes depending on the situation, too.


Hi. In the linked "confessions" blog you've taken the path of making some claims about a topic and supported them through who you are, instead of facts. People who disagree with your claims will question if who you are is relevant.

C++ is difficult, and there are few experts. My thesis is that one doesn't need to be an expert to write safe C++ code, but they do need access to quality libraries focused on safety, and good practices focused on safety. Banning some unsafe C functions, saying "use smart pointers" or making a list of UB is useful, but not enough.

C++ can be written much more safely than it normally is, but it seems that's not happening. I'm not sure why, it could be that the performance loss of additional runtime verification is not acceptable, that the adequate learning resources are not available or that it's not an important topic for the C++ community.

P.S: I'll gladly have the kind of error you linked to. It's at compile time, I will try to figure it out and worst case rewrite my code. UB is the problem.


You might want to look up the fact that the author is a HEAVY FREAKIN' DUTY C++ PROGRAMMER before making uninformed whingeing.

http://robert.ocallahan.org/2017/09/rr-50-released.html http://robert.ocallahan.org/2017/07/confession-of-cc-program...


The first link has no relevance to the discussion, and the second I had indeed read before posting. Need I point out that C++ IS NOT C. Being a good C++ programmer does not make you a good C programmer, and vis versa. I would argue, in fact, that many of the capabilities that a knowledgable, current C++ coder depends on would make them more liable to encounter issues coding in C, std::auto_ptr being chief among them.


It was subtle but he put 'Rewrite in Rust' in caps, which I took to mean that it was a self aware use of a meme, while still making a valid point.


Someone who has something which is indeed better and knows it will believe everything should be rewritten thus; someone who has something which is middling or worse but believes it to be better will think the same thing.

The interesting question is not whether or not the author is a Rust proponent; it's whether or not Rust is an improvement on C. As neither a C nor a Rust programmer, it appears to me that the answer is unequivocally 'yes' — and this despite the fact that Rust is roughly as intelligible as Mandarin to me.


The rust evangelism strike force stages yet another sortie!


Sock it all away and keep working. You seem like a smart guy. Google "compounding interest."


The lady doth protest too much, methinks.

-- Hamlet, Act 3, Scene 2

How often have we seen politicians champion an issue only to find out that it's over-compensation for the presence of that issue in their personal life... cough Foley cough


Hey, if you're going to remove the old key, remove it securely: use srm!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: