dhruv3006@lemmy.world to Programmer Humor@programming.dev · 2 days agoAmazon AIlemmy.worldimagemessage-square79linkfedilinkarrow-up1811arrow-down15
arrow-up1806arrow-down1imageAmazon AIlemmy.worlddhruv3006@lemmy.world to Programmer Humor@programming.dev · 2 days agomessage-square79linkfedilink
minus-squarefckreddit@lemmy.mllinkfedilinkarrow-up22·1 day agoThat’s nothing, I wrote the code to return if the input is even or not in 1M lines of code.
minus-squareprime_number_314159@lemmy.worldlinkfedilinkarrow-up1·14 hours agoAre you working with 20 bit integers? You’ll never get it down to a million lines like that… There’s a million lines of If >4096, subtract 4096 Then a quick lookup case statement for whether the remaining number is even.
minus-squareShayeta@feddit.orglinkfedilinkEnglisharrow-up6·1 day agoIf you want to learn natural language processing, this is actually a fun example to generate code for.
That’s nothing, I wrote the code to return if the input is even or not in 1M lines of code.
If 1 no else if 2 yes else if 3 no…
Are you working with 20 bit integers? You’ll never get it down to a million lines like that…
There’s a million lines of If >4096, subtract 4096
Then a quick lookup case statement for whether the remaining number is even.
If you want to learn natural language processing, this is actually a fun example to generate code for.
Exactly…