Profile for hikari
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
- 19037
- Followed by
- 1574
- Following
- 203
suppose I want to implement a memory allocator, and I want to optimise for simplicity, clarity and ease-of-implementation, rather than being optimally efficient. what is a good strategy? I do need to handle a mix of small and large allocations and freeing needs to work.
#import "Foundation/Foundation.h"
#include <objc/message.h>
#include <objc/runtime.h>
@interface Infinite: NSObject
@end
@implementation Infinite: NSObject
@end
int main(void)
{
class_addMethod([Infinite self], @selector(loop), objc_msgSend, "@@:");
[[Infinite new] loop];
return 0;
}
audiophiles will buy anything, but executable files only import their enumerated list of dynamic libraries
rust question. a common pattern in code iβve written is:
assert!(foo % bar == 0);
let count = foo / bar;
is there a standard way to do that as a single operation?
one of the things i really like about rust is how it helps you avoid errors by combining an assertion of some assumption (e.g. βfoo is not Noneβ) with obtaining a value based on that assumption (e.g. getting the value inside the Some()). so in this case, itβd be really nice if i could do something like foo.div_exact(bar).unwrap(). personally iβd put it in the stdlibβ¦
fuck it, haruhi profile pic time
"dawning realisation" refers to the morning of black friday
oh no, I just had to reboot my server after it became unresponsive. it seems like it might have been serving a lot of fediverse requests, was it overwhelmed?
I hope that was legit traffic and not an attack. I should look up what domains are suspiciousβ¦
it's incredibly cute how ARMv6 code jumps back and forth between A32 (normal Arm code) and T32 (Thumb code) all the time. having the lowest bit of the function address mark whether it's Thumb is such a neat trick
WAKE UP IT'S NEW CSB SAFETY VIDEO TIME
youtube.com/watch?v=rGVbGNdx7g0
Mobile Suit Gundam: The Witch from Mercury absolutely rules btw