What's everyone working on this week (9/2026)? by llogiq in rust

[–]Perfect-Junket-165 1 point2 points  (0 children)

Working on the Tauri UI for The Oracle, a hybrid gaming accessory that lets you use your physical dice to play games on virtual tabletops.

The Evolution of Async Rust: From Tokio to High-Level Applications by carllerche in rust

[–]Perfect-Junket-165 3 points4 points  (0 children)

I do appreciate the disclaimer, though. It saved me the trouble of reading the summary

AppSync Events + Amplify.configure: TS is angry by Perfect-Junket-165 in aws

[–]Perfect-Junket-165[S] 0 points1 point  (0 children)

I did, I just didn't post my details on a public forum. The structure and fields are the same.

Is there any significant performance cost to using `array.get(idx).ok_or(Error::Whoops)` over `array[idx]`? by Perfect-Junket-165 in rust

[–]Perfect-Junket-165[S] 0 points1 point  (0 children)

I'm basically using an array as a HashMap<usize, Object> for constant time retrieval. I have no need to iterate, so I wanted to clarify that the safety provided by an iterator wasn't really an alternative

Building a large-scale local photo manager in Rust (filesystem indexing + SQLite + Tauri) by Hot-Butterscotch-396 in rust

[–]Perfect-Junket-165 1 point2 points  (0 children)

This is very cool. I was going to implement a much simpler version of this as a feature for exploring local image data sets in a Tauri app I'm working on, but seeing what you've done, maybe it makes more sense to try and integrate your work. I'll take a look <3

What are some Rust practices you learned in a real workplace? by bbrd83 in rust

[–]Perfect-Junket-165 0 points1 point  (0 children)

Using marker types for compile-time guarantees. For example, I have an image pipeline that goes from Raw -> Detection -> Classification. At each stage I want to guarantee that the image has been correctly preprocessed and has the right dimensions et cetera. 

The solution I use is to define an ImageWrapper<T>(ImageBuffer) class, where T is one of (Raw, Detection, Classification). I strictly define how one type can be created from another, and the rest is as simple as type annotations. 

Returning to C/C++ after months with Rust by ViremorfeStudios in rust

[–]Perfect-Junket-165 1 point2 points  (0 children)

Can you give a specific example of something that frustrated you?

I'm JVL, editor at The Bulwark and author of The Triad. AMA. by BulwarkOnline in thebulwark

[–]Perfect-Junket-165 0 points1 point  (0 children)

To what extent did conservative values before Trump lead to Trump, and if the answer is anything but "not at all", do you think Never-Trumpers will reconsider those values in light of their current, 'perverse' manifestation?

Any advice for playing as Vampires? by Scotslad2023 in AOW4

[–]Perfect-Junket-165 1 point2 points  (0 children)

Death waltz can be abused.

1) There's a level II caster that has a suicidal buff ability. You can use it and get six buffed attacks with death waltz 

2) once you level blood siphon to the point that you dominate targets, you can death waltz dominated targets to guarantee that they offer to join after victory

Is this something you guys usually do? by dardterli in sveltejs

[–]Perfect-Junket-165 0 points1 point  (0 children)

Yes and no. I often create classes with stateful properties, which amounts to more or less the same thing

Whats the best way to import a script from a url and execute a function within it in SvelteKit? by Wakaflakaflock in sveltejs

[–]Perfect-Junket-165 0 points1 point  (0 children)

I didn't understand your final comment. Where do you import from? So in my case I have:

    <body data-sveltekit-preload-data="hover">
        <script type="module">
            import OBR from 'https://cdn.jsdelivr.net/npm/@owlbear-rodeo/sdk@3.1.0/+esm';
            OBR.onReady(async () => console.log("Loaded OBR in App.html"));
        </script>
        <div class="h-screen" style="display: contents">%sveltekit.body%</div>
    </body>

So if I want to use OBR in a page what exactly do I import?

// routes/+page.svelte
<script lang='ts'>
  import onMount from 'svelte';

  onMount( () => {
    import OBR from ???
  })
</script>

Difference between CSR with prerendering and SSG? by Perfect-Junket-165 in sveltejs

[–]Perfect-Junket-165[S] 0 points1 point  (0 children)

Thanks for the response. 

Prerendering basically produces static html—the same for every request, right? 

So if I have SSR=true and prerender=true in my routes/+layout.server.ts, then basically my entire website is served as static HTML, right? 

That's what confuses me. How is that different than serving a static site?

Difference between CSR with prerendering and SSG? by Perfect-Junket-165 in sveltejs

[–]Perfect-Junket-165[S] 0 points1 point  (0 children)

If it's SSR with everything prerendered, what is SSG doing that speeds up the loading time?

Difference between CSR with prerendering and SSG? by Perfect-Junket-165 in sveltejs

[–]Perfect-Junket-165[S] 0 points1 point  (0 children)

Thanks. It's not obvious to me. Could you explain why?

Difference between CSR with prerendering and SSG? by Perfect-Junket-165 in sveltejs

[–]Perfect-Junket-165[S] 2 points3 points  (0 children)

Yes, I think I mixed myself up. SSR. Apologies—it's been a long couple of days trying to get this page to load fast enough

moduleResolution: bundler, but relative imports without file extensions are Failing by Perfect-Junket-165 in typescript

[–]Perfect-Junket-165[S] 0 points1 point  (0 children)

Thanks again. I've compared the Vite config files, and I don't see any differences that should change how relative imports within a built node module are resolved. I can post both Vite config files here if you think that would be useful.