koji 積分 1
List<URLData> retrieveURLs(URL... urls) throws Exception {
  try (var executor = Executors.newVirtualThreadExecutor()) {
    var tasks = Arrays.stream(urls)
            .map(url -> (Callable<URLData>)() -> getURL(url))
            .toList();
    return executor.submit(tasks)
            .filter(Future::isCompletedNormally)
            .map(Future::join)
            .toList();
  }
}

乍看想說isCompletedNormally會true嗎,結果這是新API然後 submit(java.util.Collection)1

Returns:
    stream of completed Futures

這 code review 沒看過的會搞不懂吧

christinatilly 積分 1

Travis CI is a continuous integration tool that can be integrated with your project to automatically test and deploy on each change you made

kaif 積分 1 編輯於

大公司 infra team 最後都是政治問題: 是做給長官 (customer) 看,還是真的是來服務 developer (user)

changyuheng 積分 1

怎麼防止破解也蠻重要的。加一個 cycle 總數的 counter 搭配 HMAC,應該就沒辦法透過簡單的 diff 破解了。

j0n 積分 1

2008年微軟開價 44.6 billion...

haocheng 積分 0

破解洗碗機的 DRM 還蠻有趣的,不過不知道會不會有法律問題?

haocheng 積分 0

補上 HN 的討論,太長了看不完… https://news.ycombinator.com/item?id=26998127

haocheng 積分 0

看到這張圖還蠻好笑的

https://twitter.com/ZiggyTheHamster/status/1388229284595044355

koji 積分 0

https://twitter.com/CaseyNewton/status/1388212468510380034?s=19

想說一些人會走,但沒想到比例這麼高

haocheng 積分 2

雖然標題很聳動,但看完文章之後會發現實務上是不太可能辦到的...

rein 積分 2

很多时候我们看不清,这不要紧,但至少有一些坑是可以避开的,比如 messaging app。

👍

wybeen 積分 1

"合理" 這個詞用得不好, 畢竟光是合誰的理就吵不完了

IngramChen 積分 1

Apple 也被扯進來,這個戲會怎麼演下去呢…

andyang 積分 0 編輯於

16" 的 macbook pro m1 呢,敲碗