โฒ 547 โผ if input() == 1: return True (sh.itjust.works) submitted 9 months ago by Ragdoll_X@sh.itjust.works to c/programmer_humor@programming.dev 27 comments fedilink hide all child comments Soy 0 got truthmogged by chad 1 ๐
[โ] ZILtoid1991@lemmy.world 32 points 9 months ago (4 children) Now 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. permalink fedilink source hideshow 4 child comments replies: [โ] DarkenLM@sh.itjust.works 7 points 9 months ago (1 child) Laughs in VHDL permalink fedilink source parent hideshow 1 child comment replies: [โ] wewbull@feddit.uk 1 point 9 months ago Laughs in SystemVerilog permalink fedilink source parent [โ] kubica@fedia.io 1 point 9 months ago (1 child) The not so funny thing is that if you try this in scripting languages -1 and 1 are both truthy so... permalink fedilink source parent hideshow 1 child comment replies: [โ] ZILtoid1991@lemmy.world 1 point 9 months ago 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. permalink fedilink source parent
[โ] DarkenLM@sh.itjust.works 7 points 9 months ago (1 child) Laughs in VHDL permalink fedilink source parent hideshow 1 child comment replies: [โ] wewbull@feddit.uk 1 point 9 months ago Laughs in SystemVerilog permalink fedilink source parent
[โ] wewbull@feddit.uk 1 point 9 months ago Laughs in SystemVerilog permalink fedilink source parent
[โ] kubica@fedia.io 1 point 9 months ago (1 child) The not so funny thing is that if you try this in scripting languages -1 and 1 are both truthy so... permalink fedilink source parent hideshow 1 child comment replies: [โ] ZILtoid1991@lemmy.world 1 point 9 months ago 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. permalink fedilink source parent
[โ] ZILtoid1991@lemmy.world 1 point 9 months ago 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. permalink fedilink source parent