@abobla@lemm.ee to Linux@lemmy.ml • edit-25 days agoMalicious Go Modules Deliver Disk-Wiping Linux Malware in Advanced Supply Chain Attackthehackernews.comexternal-linkmessage-square27fedilinkarrow-up1207arrow-down13file-textcross-posted to: linux@programming.dev
arrow-up1204arrow-down1external-linkMalicious Go Modules Deliver Disk-Wiping Linux Malware in Advanced Supply Chain Attackthehackernews.com@abobla@lemm.ee to Linux@lemmy.ml • edit-25 days agomessage-square27fedilinkfile-textcross-posted to: linux@programming.dev
Packages: github.com/truthfulpharm/prototransform github.com/blankloggia/go-mcp github.com/steelpoor/tlsproxy
minus-square@abobla@lemm.eeOPlinkfedilink28•5 days agoI’m already writing my own dependency to check if a number is even: if (number == 0) return true if (number == 1) return false if (number == 2) return true if (number == 3) return false I’m almost there!
minus-squareCptKrkIsClmbngThMntn [any]linkfedilinkEnglish18•5 days agoYou’ve probably covered 90% of use cases there so you’re doing well! I’m trying to port your code to Rust but the compiler keeps giving me an error about non-exhaustive match arms
minus-square@Kazumara@discuss.tchncs.delinkfedilink9•5 days agoIt’s quite cruel of that compiler not being happy until you’re exhausted.
minus-squareCptKrkIsClmbngThMntn [any]linkfedilinkEnglish8•5 days agoAssuming you’re monotheistic, I believe you can use an mpsc channel to send those asynchronously.
I’m already writing my own dependency to check if a number is even:
if (number == 0) return true if (number == 1) return false if (number == 2) return true if (number == 3) return false
I’m almost there!
You’ve probably covered 90% of use cases there so you’re doing well!
I’m trying to port your code to Rust but the compiler keeps giving me an error about non-exhaustive match arms
It’s quite cruel of that compiler not being happy until you’re exhausted.
this is so sad, I’m gonna pray for you in rust
Assuming you’re monotheistic, I believe you can use an mpsc channel to send those asynchronously.