intercal
m1=116.8 m2=33.0 m3=11.4 (solar masses)
v1x=6.246 v1y=-2.19 v2x=-0.751 v2y=-2.579 v3x=6.987 v3y=5.428 (km/s)
x1=-24.0 y1=-28.0 x2=32.0 y2=30.0 x3=-10.0 y3=26.0 (AU from center)
Music: Dune (2021) Medley – Zimmer
ran into an error with rustc because I was trying to use a "cyclic superpredicate", basically you can't do:
trait MyTrait: PartialEq<dyn MyTrait> { ... }
and the compiler says:
error[E0391]: cycle detected when computing the super predicates of MyTrait
= note: …which immediately requires computing the super predicates of MyTrait again
and then it links me to dev docs for the rust compiler query system internals. which feels more like an implementation limitation of rustc rather than unsound or incorrect code :|
I'm curious why you needed PartialEq<dyn MyTrait> in the first place, I can't seem to come up with any reasons why I'd ever need that instead of just PartialEq. (I don't know your codebase though, and I'll admit I get a little hazy when it comes to dynamic dispatch.)
everything in the language gets passed around as a “Gc<dyn Object>”, and one of the functions I have on the Object trait is “Object::equals(&self, other: &dyn Object)” for basic equality among builtin types. I am working on implementing hash maps for the language, but you need to be able to implement PartialEq and Eq for the hash key types. I was hoping I could constrain the Object trait to those two since I’m going to be storing the “Gc<dyn Object>” pointers as both keys and values, and then just implement PartialEq::eq for all of the object implementors instead of my custom Object::equals function.
basically it’s just to get hashmaps to work for a wide variety of types that fall under a specific trait that’s tracked as an unsized type behind a smart pointer.
right now I am hoping to use the hashbrown crate’s HashTable type because it’s a little more flexible and takes functions for comparison and hashing instead of expecting traits to be implemented. I am still figuring out the “hashing an object in the context of a VM function call” story.
ran into an error with rustc because I was trying to use a “cyclic superpredicate”, basically you can’t do:
trait MyTrait: PartialEq<dyn MyTrait> { … }
and the compiler says:
error[E0391]: cycle detected when computing the super predicates of MyTrait
= note: …which immediately requires computing the super predicates of MyTrait again
and then it links me to dev docs for the rust compiler query system internals. which feels more like an implementation limitation of rustc rather than unsound or incorrect code :|
airbnb at the beach for my birthday is reserved. come to Lincoln City between October 26-29 if u want an ass kicking
they need to start including a full-size hammer with ramune so you can get the damn marble out of the top when you're done drinking it
Anonymous asked:
I get a 5 pack of ramen for $10 is that a good deal
ramen noodles? probably not considering ramen is about 50 cents a pack. but if you’re talking about ramune that’s an OK price
Anonymous asked:
do they sell the ramun at walmar?t
idk I get mine at grocery outlet. they usually have them at asian markets too
Anonymous asked:
what do you need rhe marble for
for fun
they need to start including a full-size hammer with ramune so you can get the damn marble out of the top when you’re done drinking it




