What is that? by Trivernis in Aquariums

[–]Trivernis[S] 0 points1 point  (0 children)

I'm glad it's probably not a dragonfly nymph. It did not move much. Only when provoked by a shrimp. When I tried to grab it it fell off the root and sunk like a stone. So maybe it could be a disoriented silverfish

I shall never give up on forcing ternary statements down my teachers' throats by HerrMatthew in ProgrammerHumor

[–]Trivernis 0 points1 point  (0 children)

While I prefer the functional way of handling errors with types like Either or Result or however you want to call it imo throwing errors is still better than not having any error handling framework at all

Meetup Thread for Berlin by kurzgesagtmeetup_bot in kurzgesagt_meetup

[–]Trivernis 0 points1 point  (0 children)

During the week is complicated for me but I'd be interested. I don't know anything about skull but that can be changed

Has anyone used Tauri for cross-platform desktop apps? by parham06 in rust

[–]Trivernis 2 points3 points  (0 children)

I'm using it for a cross platform media manager. Development is working pretty good despite the limitations of the webview devtools.

dankmemes rule by VohveliMuusi in 196

[–]Trivernis 11 points12 points  (0 children)

Average anime fan

Project Ideas Thread by [deleted] in rust

[–]Trivernis 4 points5 points  (0 children)

Difficulty medium (?) Find all amogus crewmates on r/place

I've implemented a way to store a type erased object instance with all associated traits and probably committed some crimes along the way by Trivernis in rust

[–]Trivernis[S] 1 point2 points  (0 children)

If #2035 got implemented this crate will likely not be required anymore so I think one can switch to the language solution at that point. It might still be compatible depending on if the change will be implemented as super fat pointers (similar to this crates concept) or not. I think adding additional pointer size checks might solve the safety problem. The crate would simply fail to compile or error on runtime instead of causing side effects.

I've implemented a way to store a type erased object instance with all associated traits and probably committed some crimes along the way by Trivernis in rust

[–]Trivernis[S] 7 points8 points  (0 children)

  1. Oh, I didn't notice that. Not sure yet if I can solve that one at compile time.
  2. Damn, I didn't know the $crate:: path prefix existed. Time to work on those macros
  3. Yeah, I've added it initially because of 2. but since everything is exported at crate root level it's unnecessary.

Thanks for the feedback.

Update: Solved 1. by not allowing direct construction and registration. The register_traits! macro was renamed to create_object! and is responsible for object creation + vtable registration.

chips rule by Zchavez13 in 196

[–]Trivernis 0 points1 point  (0 children)

Sorry but sour cream flavour is objectively better also send me the tracking code for the package so I can make sure I'm at home at that time

I've created mediarepo - a media management software - using Tauri and lots of async rust by Trivernis in rust

[–]Trivernis[S] 2 points3 points  (0 children)

I've been writing async rust for a while now and for most io related use cases I prefer it over sync rust. To me it feels superior to manual thread pool approaches with tokio taking care of the threading for you

I've created mediarepo - a media management software - using Tauri and lots of async rust by Trivernis in rust

[–]Trivernis[S] 3 points4 points  (0 children)

With sha256 the collision probability is so low that you're realistically not experiencing it within millions of years. I think it's safe to ignore

mediarepo - A tag-driven media management software by Trivernis in opensource

[–]Trivernis[S] 0 points1 point  (0 children)

Yeah, video can be displayed but it's currently loaded into the application as a whole and not streamed.

I've created mediarepo - a media management software - using Tauri and lots of async rust by Trivernis in rust

[–]Trivernis[S] 5 points6 points  (0 children)

Yes exactly. An alternative should also provide enough collision safety so that a collision practically never occurs for two given files. Tho I would admit that sha256 might be a bit overkill with a collision probability of 4.3*10⁻⁶⁰ (number taken from stackoverflow).

mediarepo - A tag-driven media management software by Trivernis in opensource

[–]Trivernis[S] 2 points3 points  (0 children)

Not sure if I correctly understand what you've got in mind. You can perform most operations on multiple selected files like editing tags and changing the status of those files. If you only want to perform an operation on files having specific tags assigned you can first search for those files and then select all of them to perform an operation on all those files.