I have nearly stopped using them to do any sort of "task". I mostly use them as search engines when learning something unfamiliar. Though they suck at docs too, so it only helps initially.
I have nearly stopped using them to do any sort of "task". I mostly use them as search engines when learning something unfamiliar. Though they suck at docs too, so it only helps initially.
They look at these? Wouldn't the names be all sorts of things? I thought using semantic HTML elements was enough.
😱😍
*accidentally writes a game engine*
I was just fooling around with #ziglang, just trying to write a simple stl viewer, I swear.
I did not think this would be so similar.
The solution was just to render myself a benchy, lel. Also maybe I'm stupid, but I can't figure out how one is supposed to structure the cleanup code when using flecs. Ended up just looping through after my main loop, but I want each component to handle it's cleanup.
Me learning #ziglang: How hard could it be not too leak memory everywhere?
Have started to dabble with comptime in #ziglang. This is amazing. I can't quite put into words just how nice it feels. It's like someone put all the ridiculous type magic you do in typescript with generics IN the function body. Reads so nice.
pub fn onPreUpdate(cameras: []CameraComponent[]) void {
Me, a typescript dev, trying #ziglang
I love zig's syntax to de-reference a pointer: variable.*. It just makes so much more sense. So much easier to think about. #ziglang
Damn, that node_modules inspector looks 🤯. Just gorgeous.
Fuck, I'm really getting into zig. Help. Must finish other projects first.
Also the naming of some of the libs is killing me : zbgfx, zglfw. Please stop mashing your keyboard (yes I know the z is for zig). I cannot deal with 4+ letter acronyms.
Not good for treeshaking last I checked, but I use a Result util like this in a lot of places, so worth it.
🥳 Conditional Return Types!!!!! 👏👏👏 No more crafting a perfectly typed function only to have to cast the return type in the implementation!
This looks amazing! Will the editing part be open source? Would love to integrate this into my app instead of having a latex block raw+preview block.
Pretty metadata inputs. Done with the basic ones + added random generation for testing.. More advanced + metadata type editor soon.
Want to quickly check NPM package popularity?
✨ I've built a tiny, beautiful terminal tool to check package stats. No setup needed, just run:
$ npx pkg-stats <package>
Let me know what you think!
Finally 👏👏👏!!!!!
Had a usecase for this a while back. I have to remember what it was. Was very sad I couldn't get the values as numbers in calc.
You can also just have a bridge typed in such a way that you could do something like this, but you have to tag each function
type Api = {
"tag" : typeof yourFunction
}
then it's possible to type the bridge in such a way as to type args here:
await bridge.send("tag", ...args)
This might be overkill for your usecase, but I needed something similar + runtime safety. I built a small async bridge for simple messages ("data"|"error"). Then I created a custom trpc handler on the worker side that communicates over the bridge. And can just use the trpc api as normal.
I just realized, when my pc is borked, I can just throw the logs at an LLM and it can sift through that mess real quick.
Please, I want to know when it's finally over. 🤣 It's been such a painful and slow move.
Am so tired of LLMs being like are you sure you want to do that? Yes jesus, give a warning, but DO THE THING. Do local or maybe less censored models also suffer from this? Can they be trained out of it? I hate it.
M.getWorkspaceRoot = function() local res = LazyVim.root.detect({ spec = { "pnpm-workspace.yaml" }, all = true, }) if (res[1]) then return res[1].paths[1] end return LazyVim.root.get() end M.getClosestProject = function() local res = LazyVim.root.detect() for i, v in ipairs(res) do if type(v) == "table" and v.spec[1] ~= "pnpm-workspace.yaml" then return v.paths[1] end end return LazyVim.root.get() end
My two new favorite friends. This makes it way nicer to work in a monorepos in neovim. Need to refactor into proper plugin.
This looks amazing. I know nothing about shaders, they've been on my to-learn list. This really makes me want to learn more.
Interesting. Will be keeping an eye out for how this works out. I ended up switching to 0 versioning for new projects after getting semantic release to work with it and most are just stuck in zero out of lazyness.
Have had to deviate my plans for today to implement dev only auth mocking. Was easier than I thought because I implemented most of the auth logic, but I'm surprised there's so little info on doing this. You'd think it'd be quite a common thing to need to do. Is there a better way?
Gotta update my utils.
🎉👏 Can't wait to try!
And they've added docs how to do writes through the db! Have been holding off on implementing the sync for my app for this.
Love the detailed examples on potential write patterns and the freedom to do it however you want.
electric-sql.com/docs/guides/...
Have I mentioned how much I love nuxt's devonly component? Yes. Have I mentioned it enough? No.
Here am using it in combination with radix's hover card so I can inspect all the internal data for an item.
#vue #nuxt #radix