Ragdoll X@sh.itjust.works to Programmer Humor@programming.dev · edit-22 days agoif 1: return Truesh.itjust.worksimagemessage-square24fedilinkarrow-up1597file-text
arrow-up1597imageif 1: return Truesh.itjust.worksRagdoll X@sh.itjust.works to Programmer Humor@programming.dev · edit-22 days agomessage-square24fedilinkfile-text
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up29·2 days 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·1 day 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·1 day 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
Laughs in SystemVerilog
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.