サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
TGS2024
belkadan.com
Rust traits have the neat property where you can use them either as generic bounds or as dynamic dispatch, with the &dyn MyTrait syntax. The latter is necessary in heterogeneous scenarios, where you want to use multiple concrete types together that all implement a common trait. However, that requires that you have an instance, so that the reference actually “refers” to something. What if you have
This is going to be another one of those posts where I did something ridiculous and then show you how I got there, so let’s just get right to it. use objc_rust::*; use std::ffi::CStr; pub fn main() { #[link(name = "Foundation", kind = "framework")] extern {} objc! { let cls = ObjCClass::lookup("NSNumber\0").unwrap(); let value = [[cls.into() numberWithUnsignedInt:42u32] stringValue]; let result =
It’s April 1, and that means it’s both April Fools’ Day and the anniversary of the founding of Apple Inc. While this year is a sober one due to current events, I think a lot of people still appreciate what people are creating and sharing to keep spirits up, whether that be music or art or…impractical programming projects. And while pranks on April Fools’ seem less and less fun1, obvious jokes and
A month or so ago, @__biancat (whose username I can’t help but read as “Bian-cat” even though it’s probably “Bianca T.”) suggested I write up some ideas for getting into compilers and programming languages. It turns out I’m happy to expound on this, and it doesn’t need a formal CS education either.1 Unfortunately, pretty much all of them require some amount of free time. I’ll come back to that at
Various destinations for Webmailer, discovered by the developer or submitted by users. Make sure to replace any site-specific placeholders with the proper information.
Webmailer was a program to catch mailto links and send them to your favorite webmail system, complete with parameters lifted from the mailto link. Due to other obligations, development on Webmailer ended several years ago, and it is no longer compatible with modern versions of macOS.
このページを最初にブックマークしてみませんか?
『belkadan.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く