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 沒看過的會搞不懂吧
來看一下內文的 HTTP/2 Prioritization1.
然後直接擺各家的頁面速度還蠻直接的w
koji
積分 0
The output from this tool handles the serialization/deserialization process automatically, meaning our client-side devs can continue to work in their language of choice while interacting with the Rust library and can be free from the concerns of JSON parsing over the foreign function interface (FFI)
好奇這邊的FFI是啥,就是 產生 target language 的 source code1 嗎?但repo有點舊了。
但我能理解這個blog...就像我第一次看到
task greeting(type: GreetingTask){
}
我一直會想知道到底怎麼變成 groovy call1 ...
project.tasks.create([name: 'greeting', type: GreetingTask]) { ... }
不然實在不知道自己寫時該怎麼下手,尤其只看 API document...
koji
積分 2
Gradle 真的讓人覺得在寫程式,各種寫法,DSL讀時是蠻方便馬上了解大概想幹什麼,但要自己改動時就痛苦多了。
另外讓我想到 討論如何Tagging sub projects1(離題)