pastermil@sh.itjust.works to Programmer Humor@programming.dev · 1 year agoThat Nim Flashbackssh.itjust.worksimagemessage-square56fedilinkarrow-up1831arrow-down18
arrow-up1823arrow-down1imageThat Nim Flashbackssh.itjust.workspastermil@sh.itjust.works to Programmer Humor@programming.dev · 1 year agomessage-square56fedilink
minus-squareDaxtron2@startrek.websitelinkfedilinkarrow-up40arrow-down1·1 year agoNah Hanoi was easy stuff, first year. Definitely more traumatizing practice problems.
minus-squarelad@programming.devlinkfedilinkEnglisharrow-up12·1 year ago Hanoi […] practice problems. Like you come to the exam and there’s a 64 piece Tower of Hanoi you need to solve manually to pass the exam
minus-squareJohnEdwa@sopuli.xyzlinkfedilinkarrow-up3·1 year agoAssuming 1 second per swap, a 64 disk tower of hanoi would take 585 billion years to solve - it has 2^64 -1 swaps.
minus-squarelad@programming.devlinkfedilinkEnglisharrow-up2·1 year agoAnd that makes It good enough for an exam
minus-squareAlexstarfire@lemmy.worldlinkfedilinkarrow-up9arrow-down2·1 year agoYea, get back to me when you get to parallel programming.
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up3·1 year agoOr even just try to understand pthreads.
minus-squareFierySpectre@lemmy.worldlinkfedilinkarrow-up3·1 year agoWriting kernels for parallel execution with OPENCL gives me flashbacks every time I remember them
minus-squarelad@programming.devlinkfedilinkEnglisharrow-up2·1 year agoTis’ not hard, just add some sleeps to make sure other thread reads data before it is destroyed 🌚
Nah Hanoi was easy stuff, first year. Definitely more traumatizing practice problems.
Like you come to the exam and there’s a 64 piece Tower of Hanoi you need to solve manually to pass the exam
Assuming 1 second per swap, a 64 disk tower of hanoi would take 585 billion years to solve - it has 2^64 -1 swaps.
And that makes It good enough for an exam
Calm down, satan
Yea, get back to me when you get to parallel programming.
Or even just try to understand pthreads.
You’re doing it again
Writing kernels for parallel execution with OPENCL gives me flashbacks every time I remember them
Tis’ not hard, just add some sleeps to make sure other thread reads data before it is destroyed 🌚