Profile for hikari
About hikari
Bio
from another world; magical girls on the internet, gpu programmers, musicians, sky enthusiasts, etc; EN/SV/DE/日本語
Stats
- Joined
- Posts
- 16689
- Followed by
- 1483
- Following
- 198
you know what? fuck you
unarpeggiates your Prelude
https://hikari.noyu.me/etc/2022-12-28-unarpeggiated-prelude.mp4
ME: if objc_msgSendSuper is so good why isn’t there an objc_msgSendSuper2 😏
APPLE: you’re never gonna believe this
FSF may do a lot of harm to the open-source movement at times, but their insistence on copylefting everything lets me legally extract certain critical binaries from otherwise-proprietary systems and avoid ungodly amounts of effort, so, it’s impossible to say if they’re bad or not
god i love music from the era where game soundtracks had to be sampled that leans into the sampling. who says notes have to have a gradual attack and decay? who says sampled instruments have to even remotely sound like the things they’re sampled from?
what’s the difference between globalisation and internationalisation? that’s simple. globalisation is a word that terrifies fascists, whereas internationalisation is a word that terrifies programmers
I don’t know why people complain about x86 having too few registers. it has 230 of them,
hey, does anyone know who maintains the cc crate for Rust? it seems like it exists in a weird kind of limbo, it’s not exactly part of the main Rust project but it is on their GitHub?
(i have an open pull request, that’s why i’m curious: https://github.com/rust-lang/cc-rs/pull/761)
I don’t know who needs to hear this, but
trait FooBar: Any {
fn as_any(&self) -> &dyn Any {
&self as &dyn Any
}
}
sadly will not work, no matter how many apostrophes you add. you also can’t just call .downcast_ref() on a FooBar.
previously, when having to do this, i just gave up.
but it turns out there’s a practical workaround:
trait FooBar: Any {}
pub trait AnyFooBar {
fn as_any<'a>(&'a self) -> &'a (dyn std::any::Any + 'static);
}
impl<T: FooBar> AnyFooBar for T {
fn as_any<'a>(&'a self) -> &'a (dyn std::any::Any + 'static) {
&*self
}
}
I hope this helps avoid suffering for someone else!
forming a gang of soft scientists from subfields that are empirically verifiable. we’re gonna go crash the hard scientists’ party by screaming at them about their unfalsifiable subfields. let’s go
i will stab the next person who tells me that there are hard and soft sciences and the distinction is whether you can empirically verify propositions. every scientific field has some degree of unfalsifiability lurking within it. i may or may not just be bitter because my degree is in linguistics which is supposedly a soft science, and so many STEM-bros do not realise that we too have experimentally verifiable propositions. it’s easier to prove various facts about language development than it is to prove your pharmaceutical works