Better HN
topnewbestaskshowjobs
Log inSign up

jes

2,572 karma · joined Jul 16, 2009 (17y ago) · 713 submissions

Submissions

comment 2y ago · link · parent

John Koza has something like three or four books on Genetic Programming. It's all in Lisp and I enjoyed working with different examples from his books. If I ever have enough free time, I'd like to go back and work with it again for a while.

comment 2y ago · link · parent

Thank you for taking the time to drop this link. I had exactly the question I think you anticipated: "Where can I get a really well-made washer and dryer?"

comment 2y ago · link · parent

Here's my take. Asserts are a kind of error handling. They handle situations where the code can tell that it's off the rails. It might be off the rails due to a hardware error or a software implementation error, e.g., a 'can't happen' situation.

We didn't have debug-only asserts. Asserts were enable in the software we verified and shipped.

It took a while for developers to be able to determine when a situation called for an assert, and when it called for what might be called traditional error handling.

The strategy of shipping with asserts enabled kind of worried some folks. They were concerned that it might assert in front of a customer. I understand the concern, but in our domain, if you're doing an OB exam with the ultrasound system and you have a choice of asserting or showing a femur length measurement of -1039cm, which is better?

We didn't have many asserts in the field. We had a lab where we had about 25 - 30 ultrasound machines running embedded tests constantly. Each machine was connected to a JTAG debug board, so we could flash new code into the system and so we could set a breakpoint on the assert routine itself and save a "core dump" for subsequent debugging without having to try to reproduce the system state that led to the assert.

The whole lash-up evolved over a period of years. It worked well, so far as I know.

One mitigating factor was that our systems were class B devices. They were always supposed to be used by a medically trained professional that had the ability to take over if the system asserted, or power failed, etc.

Happy to try to answer any questions about this.

comment 2y ago · link · parent

This has been exactly my strategy when writing software for medical devices, in my case, ultrasound systems.

You have to help other developers understand how and when to use asserts, and then you have to test the developed device very well, so that it won't assert in the field.

Yet if it does assert in the field, it's highly likely that it will get a lot of management attention.

comment 2y ago · link · parent

Yeah, I was thinking of a different book. Here's the link to the other one:

https://www.amazon.com/Object-Oriented-Programming-COMMON-LI...

comment 2y ago · link · parent

I have had this book for many years. I remember the toy expert system ("Otto") and enjoyed learning from the example. If I remember correctly the author makes good use of CLOS in the book.

comment 2y ago · link · parent

Looks neat and I'd like to try it. I wonder how well it would work from within a GNU Emacs shell buffer (comint based, I think) running bash. Has anyone given this a shot?

comment 2y ago · link · parent

Yep. My 2012 Tundra still runs well and looks good. The only issue is that over time the steering wheel has been polished smooth by all my driving over the years. I am at 160,000 miles and expect to get to at least 250,000.

comment 2y ago · link · parent

> At a large insurance company I worked for, management set a target of 80% test coverage across our entire codebase. So people started writing stupid unit tests for getters and setters in Java DTOs to reach the goal.

I attended many TOC conferences in the 90s and early 2000s. Eli Goldratt was famous for saying "Tell me how you'll measure me, and I'll tell you how I will behave."

comment 2y ago · link · parent

I was somewhat reminded of Larry Wall's newsreader, 'rn', as I read the description of Orange Site Hit. I invested a lot of hours on Nutnews back in the day.

comment 2y ago · link · parent

Eli Goldratt has entered the chat...

comment 2y ago · link · parent

I hope the following from Wikipedia is helpful:

The computer had 2048 words of erasable magnetic-core memory and 36,864 words of read-only core rope memory. Both had cycle times of 11.72 microseconds. The memory word length was 16 bits: 15 bits of data and one odd-parity bit. The CPU-internal 16-bit word format was 14 bits of data, one overflow bit, and one sign bit (ones' complement representation). [1]

1. https://en.wikipedia.org/wiki/Apollo_Guidance_Computer

comment 2y ago · link · parent

Can you say how your tool compares to Vector PC-Lint in terms of analyzing compliance w/r/t MISRA C and C++?

comment 2y ago · link · parent

Wasn't familiar with RACI acronym:

RACI is an acronym derived from the four key responsibilities most typically used: responsible, accountable, consulted, and informed. It is used for clarifying and defining roles and responsibilities in cross-functional or departmental projects and processes.

I wish more people briefly defined acronyms at first usage in a document.

comment 2y ago · link · parent

Same. I love the idea of ditching the Proton Mail bridge app on my Macs. It's been a frequent source of configuration and update headaches for me.

comment 2y ago · link · parent

This has been my take as well. There is a lot of disruption in a company when a key part, like the FPGA that serves as a communications nexus in the product goes EOL and everyone scrambles for a year trying to engineer in a replacement.

Buy enough parts for expected product life, make good use of the time you didn't waste on scrambling, and when your product is EOL sell any left-over parts on the secondhand markets.

17.

Engineers work to debug issue with Voyager 1 Flight Data System(hackaday.com ↗)

3 points · by jes · 2y ago · discuss

comment 2y ago · link · parent

"If you drop your DVM and it still works, it's a Fluke."

comment 3y ago · link · parent

Can you say a little bit about the possible risks from hot silicon being in contact with the water? I have not heard of this before.

comment 3y ago · link · parent

Perfect. Appreciate the ref.

comment 3y ago · link · parent

Please say more!

comment 3y ago · link · parent

Will check it out! Ty!

comment 3y ago · link · parent

This reminds me of an Alan Watt's talk on alternating levels of order and chaos in nature.

24.

China Launches First 700 TEU Electric Containership for Yangtze Service(maritime-executive.com ↗)

42 points · by jes · 3y ago · 21 comments

comment 3y ago · link · parent

I asked ChatGPT 4.0 what LMR meant as applied to coaxial cable. It gave me an excellent response, including that LMR is a trademark of Times Microwave Systems.

I rarely use search engines anymore. I'll bet the same is true for many people.

comment 3y ago · link · parent

If the Five Whys appeals to you, you might also like the "Thinking Process Tools" of Goldratt's Theory of Constraints.

That being said, you always have to avoid fooling yourself when building logic diagrams. It's easy to do.

comment 3y ago · link · parent

Thank you so much for the link to the postmortem. I will be sharing it and discussing it with my colleagues. We are currently working on the embedded software for an AED.

comment 3y ago · link · parent

You might enjoy this article on the Therac-25 [1]. It's kind of the standard example of how errors in software can wind up harming people. I have written medical device software for about 30 years. In my experience, delivering high quality software for Class B and Class C devices is both challenging and expensive.

https://en.wikipedia.org/wiki/Therac-25

12345
24