Ragdoll X@sh.itjust.works to Programmer Humor@programming.dev · edit-21 day agoif 1: return Truesh.itjust.worksimagemessage-square23fedilinkarrow-up1567file-text
arrow-up1567imageif 1: return Truesh.itjust.worksRagdoll X@sh.itjust.works to Programmer Humor@programming.dev · edit-21 day agomessage-square23fedilinkfile-text
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up27·21 hours agoNow get ready for fuzzy logic! -1.0 = false 0.0 = neutral 1.0 = true Also now you know more about AI than most AI bros on the internet.
minus-squarekubica@fedia.iolinkfedilinkarrow-up1·15 hours agoThe not so funny thing is that if you try this in scripting languages -1 and 1 are both truthy so…
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up1·13 hours agoBecause you need to infer the fuzzy boolean as a type (I personally plan to make one that works between -127 and 127, on integers instead of floats), and then write an interpreter to use the values accordingly.
Now get ready for fuzzy logic!
Also now you know more about AI than most AI bros on the internet.
Laughs in VHDL
The not so funny thing is that if you try this in scripting languages -1 and 1 are both truthy so…
Because you need to infer the fuzzy boolean as a type (I personally plan to make one that works between -127 and 127, on integers instead of floats), and then write an interpreter to use the values accordingly.