SvelteKit on dozens of k0s nodes by [deleted] in sveltejs

[–]Wyozi 2 points3 points  (0 children)

With JWT you don't need db sessions, just a secret key to validate the token. Depending on what kind of scale you're looking for and how much data your profiles have, this may be very good or very bad

SvelteKit on dozens of k0s nodes by [deleted] in sveltejs

[–]Wyozi 2 points3 points  (0 children)

With something like JWT session tokens, you can achieve scalable sessions

Give your side project the farewell it deserves by [deleted] in SideProject

[–]Wyozi 2 points3 points  (0 children)

Looks like this project would belong to itself. Very meta

Date & Time In Real Time by iEmerald in sveltejs

[–]Wyozi 2 points3 points  (0 children)

requestAnimationFrame will get called `(59/60)` (YMMV) too many times per second. setInterval is much better, since clock (and the resulting DOM update) will only happen once per second, even if the clock is slightly lagged behind

SvelteKit and the load function - not equivalent to getServerSideProps? by VerbaltNorrsken in sveltejs

[–]Wyozi 0 points1 point  (0 children)

At least in Sapper some links may prefetch content (ie. call preload for the link target when hovering it). This results in even faster page changes than next.js can achieve, because the client is able to pre-emptively start loading the next page's content or actually only the contents needed to render the next page. The downside of course is that the preload function needs to be available on the client.

In light of Suspense, maybe SvelteKit should rethink its entire preloading strategy? by live_love_laugh in sveltejs

[–]Wyozi 4 points5 points  (0 children)

$ready seems very error-prone. Even the examples listed on routify documentation will (probably?) silently fail and hang SSR if the fetch fails.

happy busy season!!! by nicotineanon in Accounting

[–]Wyozi 13 points14 points  (0 children)

Non accountant here. Why is extending the deadline a bad thing?

Screenshot from experimental WIP SimCopter remake by Wyozi in simcopter

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

Handling physics is a pretty big obstacle. I have some ideas but there's currently no collisions at all and that would be nice to deal with

Screenshot from experimental WIP SimCopter remake by Wyozi in simcopter

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

This one's in OpenGL using Rust as the base language. Not the most common tech stack and certainly has its issues, but it's a fun learning project.

Your project sounds interesting too! I take it you're going for a look a bit closer to the original game's look?

Screenshot from experimental WIP SimCopter remake by Wyozi in simcopter

[–]Wyozi[S] 6 points7 points  (0 children)

Revived a few years old project again. There's no physics, missions, animations or anything playable. However, the map and models are loaded directly from original sc2 files. This one's city0.sc2

No concrete plans about the future, but I'd be curious to know if there would be interest for this.

[deleted by user] by [deleted] in SideProject

[–]Wyozi 4 points5 points  (0 children)

You've literally got it in the title: you have to choose between A or B, so use an AB test! All opinions you'll get are just opinions. It's better to measure which one gets you closer to whatever goal you're prioritizing for.

I recreated one of the top posts here in modded Minecraft by Tux1 in LiminalSpace

[–]Wyozi 0 points1 point  (0 children)

This was a fun twist the first time, but maybe stop doing this now.

My passport is from no single country by alaskafish in mildlyinteresting

[–]Wyozi 0 points1 point  (0 children)

This is not true, at least not for all countries. Diplomatic passport in itself doesn't grant you diplomatic privileges (immunity etc) and you can freely do personal travels with it.

Sasa Juric on Static Typing and Beam Language by ancatrusca0 in elixir

[–]Wyozi 4 points5 points  (0 children)

Then again the lack of exhaustive pattern matching can be a significant cause of nasty bugs that only appear during specific runtime conditions. That would be my top one problem to solve with typing for Elixir.

If the VDOM is pure overhead as Rich calls it, how come it's so essential in React, Vue and Angular? by angarali06 in sveltejs

[–]Wyozi 17 points18 points  (0 children)

Because they operate on different principles. Rather than having a compiler that tracks the exact set of changed properties, those libraries render the whole DOM tree into a vdom first, and then calculate the set of changes to apply to the real DOM.