4 ms·
3000 lines of control software? Seems a bit excessive. Why does it need a computer at all?
by kwhitefoot 7y ago
3000 lines of control software?
Seems a bit excessive. Why does it need a computer at all?
- Scoundreller 7y agoSeems like it's a chest freezer used as a fridge, so there needs to be some set point adjustments. And depending on what's being stored, aggressive thermal banking (if you blow -5C air at your carton of milk, it's not going to freeze for a while, so do it anyway).
- icebraining 7y agoThe solar panels are shared between the fridge and some batteries. His house computer is connected to the charge controller of the panels, to the fridge AC inverter and to thermometers inside and outside the fridge to decide whether to turn on the AC inverter. It also generates graphs of the temperatures, running times, etc. And it warns him if the fridge temperature gets too low. That said, I think the 3k lines include adapters for talking to the sensors, etc. The algorithm itself is about 250 lines: https://git.joeyh.name/index.cgi/joey/house.git/tree/src https://git.joeyh.name/index.cgi/joey/house.git/tree/src
- munk-a 7y agoAh, that's reassuring, I'm rather afraid of anybody who brags about how many LoC their thing is - ideally it is somewhere near the lowest reasonable LoC to get a thing done cleanly and expressively. Oh, also, Haskell - nice going fridge fellow.
- icebraining 7y agoYeah, he's also the guy who created git-annex, one of the most useful Haskell programs ever, in my opinion.
- segfaultbuserr 7y agoUpvoted. I can understand downvoting heated expressions, but I don't understand why a sincere question can be downvoted.
- quickthrower2 7y ago> I don't understand why a sincere question can be downvoted. Perhaps because it comes off like a criticism not a question.
- quickthrower2 7y agoEdit: there is a terminology for this: https://rationalwiki.org/wiki/Just_asking_questions https://rationalwiki.org/wiki/Just_asking_questions
- segfaultbuserr 7y agoYes, it's a technique to argue in bad faith and to shift the burden of proof. And let's see how it applies here... > 3000 lines of control software? Seems a bit excessive. Why does it need a computer at all? It really means, > 3000 lines of control software is unbelievable. It's excessive, it doesn't even need a computer at all! Sure, it's criticism. But I don't see any bad faith argument here. So I guess "Just asking questions" doesn't apply here. And from the Guideline, > Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something. So it's probably the reason for downvoting. But consider the fact that other readers have already responded to the question/criticism with more information on the author's intention, I think downvoting this is unnecessary.
- kwhitefoot 7y agoAt risk of causing further dancing on the head of a pin style argument I'd like to point out that contrary to what some people seem to believe it was a sincere question based on my own experience of writing similar control software in an industrial context. I meant exactly what I said, there was no subtext. I wanted to know the answer and it was provided by icebraining. If I had intended to say that the number of lines were in actual fact excessive I would have omitted the word seems.