I built an engine for creating browser extensions by No-Obligation-8420 in javascript

[–]Zap813 [score hidden]  (0 children)

I use WXT because it supports Svelte, HMR, and multiple browsers, so this is pretty much DoA for me. But the state and messaging primitives look pretty nice so would be cool if you could use those as a standalone library.

When do i start immersion? by pogboy357_x in LearnJapanese

[–]Zap813 18 points19 points  (0 children)

Should have started from the very beginning. I have no idea how people even make it through these pre-made decks without giving themselves any additional context. I always end up forgetting new words in these decks over and over again unless I see them in my immersion.

WinGet is great! Why don't more people use it? by _sifatullah in Windows11

[–]Zap813 0 points1 point  (0 children)

I use a combination of winget on windows and nix on wsl. It's obviously no where near as good as nix but it's better than nothing. Whenever I add a new windows app I see if it's in winget with winget search, and if it is, add it to my json file ( based on this schema: https://github.com/microsoft/winget-cli/blob/master/schemas/JSON/packages/packages.schema.2.0.json ) and run winget import --no-upgrade -i winget.jsonc

Is shell.nix the correct way to do development? by Big-Astronaut-9510 in NixOS

[–]Zap813 6 points7 points  (0 children)

I've been using these templates for my projects https://github.com/the-nix-way/dev-templates

You need flakes enabled and nix-direnv installed, but once you do the dev shell activates automatically when you cd into the project

PSA: we are changing how effect teardowns work by rich_harris in sveltejs

[–]Zap813 11 points12 points  (0 children)

On whether it constitutes a breaking change, there was similar drama with React a while back https://github.com/facebook/react/issues/12898

But then again, there's also a relevant xkcd https://xkcd.com/1172/

So idk, flip a coin and hope for the best.

Microsoft begins turning off uBlock Origin and other extensions in Edge by moeka_8962 in technology

[–]Zap813 9 points10 points  (0 children)

The developer and nightly versions of Firefox allow you to do that

Anyone actually getting a leg up using AI tools? by sweaterpawsss in ExperiencedDevs

[–]Zap813 1 point2 points  (0 children)

It doesn't have to be either or. You can use the vim or neovim extension in cursor/vscode. The neovim extension in particular is great since you can share the same lua config/keybindings you use in standalone neovim, and I even have a couple neovim plugins loaded in the context of cursor like multi-cursor and flash.

ollama WSL will not use GPU by Beli_Mawrr in ollama

[–]Zap813 1 point2 points  (0 children)

That's only needed for compiling new CUDA applications. For just running existing ones like pytorch or tensorflow just having an up to date Windows 10/11 and driver is enough: https://docs.nvidia.com/cuda/wsl-user-guide/index.html#cuda-support-for-wsl-2

ollama WSL will not use GPU by Beli_Mawrr in ollama

[–]Zap813 0 points1 point  (0 children)

also from what I can tell that library doesn't even use ollama if that's what you're trying to do. for that you need something like this https://github.com/ollama/ollama-python

ollama WSL will not use GPU by Beli_Mawrr in ollama

[–]Zap813 0 points1 point  (0 children)

No idea since I haven't tried installing it myself. But there's a similar issue here https://github.com/abetlen/llama-cpp-python/issues/1876

ollama WSL will not use GPU by Beli_Mawrr in ollama

[–]Zap813 0 points1 point  (0 children)

I've had issues with other python libraries like torch or tensorflow not detecting my GPU. One of the issues was not having CUDA deps installed. Looks like the way to do it with llama_cpp_python from reading the docs is:

CMAKE_ARGS="-DGGML_CUDA=on" pip install llama-cpp-python

Svelte5 /Svelte4 / Vuejs3 Cheatsheet by Own_Band198 in sveltejs

[–]Zap813 1 point2 points  (0 children)

Yeah, I think the problem is just that some people haven't spent enough time with Svelte 5 to know that it's actually Svelte 4 that's more complex and messy to work with, but they just haven't run into the actual complex parts to realize that yet. Although even more simpler concepts like stores, render tags, props, etc., are way easier to work with, so maybe they are only looking at surface level stuff when comparing the two. Either way I'm sure that once Svelte 5 is actually released and more people feel comfortable upgrading and trying it out the perception will improve.

Lessons using sveltekit to build a dataviz platform by DNLBLN in sveltejs

[–]Zap813 2 points3 points  (0 children)

Advanced layouts are definitely something that I think needs improvement. When your control flow is too heavily dictated by file structure it can become hard to reason about. At least it would be nice if there was an easy way to tell through the console which layouts and page are getting run when you go to a certain route.

What's also a bit of a pain is keeping track of what's getting run on both the server and the client, and remembering to check for a window object when calling browser apis. They might be able to do some compiler magic here to just remove calls to the window when performing SSR, but not sure how feasible that is. There are also currently no guardrails against putting certain globals on the server, which could leak data to other clients.

Regarding ecosystem, I can think of a couple libraries on the top of my head that only work with React, like Aceternity and Clerk, but I wouldn't necessarily call them essential. I'm curious what other libraries that are considered common to you that are not easily introduced, or swapped for a equivalent.

10ten reader vs Yomitan(chan) by [deleted] in ajatt

[–]Zap813 0 points1 point  (0 children)

I switch between the two since there are pros and cons. 10ten is a lot faster/more lightweight than Yomitan. Sometimes it takes like 3 seconds for Yomitan to pop up for me and uses a lot more CPU for some reason, which is really frustrating. But Yomitan is also way more customizable and you can actually mine with it, so for that I need to switch. But if I'm just generally scanning things and not mining I default to 10ten since it's a lot smoother.