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

I'm Italian and I don't like pasta al dente. Obviously neither overcooked, but I like it cooked. In fact it's a drama that since some years they started making pasta which remains al dente: I usually cook it at least 5 minutes longer than what is written and it is still slightly al dente: very disappointing.


You can increase the guess accuracy a little by looking for the "tLS" characters , skipping the first 3 chars. Also this is a mnemonic about TLS and identifies all strings starting with 5 dashes, excluding so most of yaml documents


Theoretically only one operation is sufficient: both NAND and NOR are universal gates, meaning all boolean operations are expressible in terms of only NANDs (or equivalently only NORs). The downside is that the expressions became longer.


You shouldn't have been downvoted.

In chip design, boolean logic circuits are often reduced to their simplest NAND/NOR representation, optimized, then translated to RTL, DTL or TTL as explained below:

https://en.wikipedia.org/wiki/NAND_logic

https://en.wikipedia.org/wiki/NOR_logic

https://en.wikipedia.org/wiki/De_Morgan%27s_laws

https://en.wikipedia.org/wiki/Truth_table

https://en.wikipedia.org/wiki/Resistor–transistor_logic

https://en.wikipedia.org/wiki/Diode–transistor_logic

https://en.wikipedia.org/wiki/Transistor–transistor_logic

https://www.etechnog.com/2021/12/comparison-between-rtl-dtl-...

https://hackaday.com/2015/06/30/gates-to-fpgas-ttl-electrica...

I studied this heavily in my electrical and computer engineering (ECE) courses in the late 1990s, and wish that more programmers were exposed to it.

On that note, I never had a single spreadsheet course. Which is regrettable, as that would have tied functional programming to logic circuits. Then it's a small step to understand mutability, then monads (which are more difficult), how they negatively impact determinism, and how that greatly increases the mental load of tracking state in imperative programming. Leading to why futures, promises, deferreds and async programming in general should be avoided.

Unfortunately these insights are all but unknown today, which left us with the over-engineered soup of web languages and frameworks that bury us in mountains of unnecessary complexity. Which we tried to get away from when declarative and idempotent HTML/HTTP metaphors were invented late in the desktop computing era, when C++ and object-oriented programming dominated tech.


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

Search: