Profile for hikari

Header for hikari
Avatar for hikari
Display name
Iwasawa 🌟 (one hikari of too many)
Username
@hikari@noyu.me
Role
admin

About hikari

Bio

from another world; anime girls on the internet who are terrible at playing guitar and slightly less bad at programming; EN/SV/DE/ζ—₯本θͺž

Stats

Joined
Posts
18667
Followed by
1563
Following
199

Recent posts

my kingdom for normal rust macro scoping

what i want:

pub macro_rules! foo {
    // …
}

what i'm forced to put up whenever i want to use intra-doc links, which is basically always:

/// Please don't write `use crate::foo;`. I know, I can't
/// stop you. But you have to write `use
/// crate::qux::baz::foo;`, because there is a meaning to 
/// this module hierarchy. I am literally Begging you. I am
/// prostrating myself before you. I'm crying. Can't you
/// see how much this is hurting me? Please. Please. Please.
#[macro_export]
macro_rules! foo {
    …
}
pub use crate::foo;
Open thread at this post

don't mind me, just writing some perfectly ordinary code here

    let mut env = environment::Environment::new_without_app(options)?;
    let env = &mut env;

    let screen: objc::id = objc::msg_class![env; UIScreen mainScreen];
    let bounds: frameworks::core_graphics::CGRect = objc::msg![env; screen bounds];
    let window: objc::id = objc::msg_class![env; UIWindow alloc];
    let window: objc::id = objc::msg![env; window initWithFrame:bounds];
    let color: objc::id = objc::msg_class![env; UIColor purpleColor];
    () = objc::msg![env; window setBackgroundColor:color];
    //() = objc::msg![env; window makeKeyAndVisible];
    
    let main_run_loop: objc::id = objc::msg_class![env; NSRunLoop mainRunLoop];
    () = objc::msg![env; main_run_loop run];

    todo!()
Open thread at this post

exciting programming problem in touchHLE: supporting inheritance for instance variables. look at how gnarly this is:

https://github.com/hikari-no-yume/touchHLE/commit/ae5b7a8d6513e3204d3c2eab1f250cdcf8930ee5

i have an idea for a neater solution, but it will involve descending further into the land of Anys and 'statics and 'as and dyns :3

Open thread at this post

the learning curve is a little steep and the preview rendering performance is horrifyingly bad, but oh my god, why have i never used blender for video editing before. it's frame-precise, i can composite all the stuff i want, and it has keyframe-based animation. in an open-source package i'm already somewhat familiar with!!

Open thread at this post