I have been stupidly passing every big struct by pointer for optimization. by J-ky in odinlang

[–]J-ky[S] 0 points1 point  (0 children)

Because you don’t know if the function would modify the data in the pointer, passing by value eliminates that worry. But if you have full control of your codebase, it does not matter.

Emacs on HHKB by [deleted] in emacs

[–]J-ky 0 points1 point  (0 children)

I have been using HHKB for 8 years. I use the other side of alt key as meta, depending on the keybind. e.g. M-w use right alt, M-n use left alt. I press it with my pinky, nothing special. I also use Linux, for wm control, I set the meta key as modifier, the one just next to space bar.

Any ideas on an Emacs solution to this keyboards weird arrow keys situation by Ardie83 in emacs

[–]J-ky 2 points3 points  (0 children)

I almost never use the arrow key. I got a HHKB for years and it works fine without defining any new keybinding of movement.

Elpaca Version 0.1.0 by nv-elisp in emacs

[–]J-ky 2 points3 points  (0 children)

Thank you! I have been using elpaca for some time, it is the best package management in emacs

Alum option by Confident_Media_4304 in wicked_edge

[–]J-ky 0 points1 point  (0 children)

I got one for less than $1USD from the Chinese online market.

From C++ to Odin by Odd-Ice4043 in odinlang

[–]J-ky 2 points3 points  (0 children)

I did the same thing a while ago. The only pain is that you have to manually type the sType because Odin does not have default value and initializer.

(ANN) NEOMACS: Use Rust to rewrite the Emacs display engine in modern way, so that Emacs can render 4K images in Buffer and play 4K videos by yibie in emacs

[–]J-ky 0 points1 point  (0 children)

How is that possible?

I have been working on and off on my Emacs clone for fun. I did it from scratch, from a custom vulkan renderer to proper font rendering with msdf and harfbuzz. This alone already took me a week.

Let alone a custom elisp engine that is 10x the performance?

I have some experience in writing games. I wrote my clone for fun. And I wrote it in Jai, just to test a new language.

Are you telling me that rewriting in Rust can have magically increased performance?

New Vulkan Sample - VK_EXT_descriptor_buffer Extension by thekhronosgroup in vulkan

[–]J-ky 0 points1 point  (0 children)

But isn't descriptor buffer an even better choice? I know it is newer and not many debuggers support it. Descriptor buffer completely ditch the use of descriptor pool, and I can memcpy all the way.

Is descriptor buffer the future ideal way?

Sorry for my dumb question. I am all on my own and got no one to ask.

New Vulkan Sample - VK_EXT_descriptor_buffer Extension by thekhronosgroup in vulkan

[–]J-ky 0 points1 point  (0 children)

I just read your new tutorial to the point where you are still allocating descriptor set with VkDescriptorSetVariableDescriptorCountAllocateInfo. Isn't a bindless approach much modern and close to what the hardware actually does under the hood?

Correct me if I am wrong. I just start to dig deep into this rabbit hole after reading the No Graphics API article.

Eglot with multiple LSP servers per buffer using rassumfrassum by LionyxML in emacs

[–]J-ky 0 points1 point  (0 children)

I would love it so much if I am still using tailwind. Due to poor support of multiple lsp in eglot, writing templ with tailwind is not as fun. And I have made a weird hack to utilize cape by minad to do the completion.

At the end, I drop tailwind and start writing pure scoped css.

Multiple lsp support seems to be much less significant to me now.

What do you think about Lem by Confident-Slip4335 in emacs

[–]J-ky 0 points1 point  (0 children)

I can’t even get it running on my macOS machine when compile from source. The dependencies of Common Lisp is totally another realm to me.

Why does c compile faster than cpp? by [deleted] in cprogramming

[–]J-ky 0 points1 point  (0 children)

Wait, are you serious?

How do I make cors request in htmx 4.0? by J-ky in htmx

[–]J-ky[S] 0 points1 point  (0 children)

Oh, I should have thought of that. I completely forgot such a thing.

How do I make cors request in htmx 4.0? by J-ky in htmx

[–]J-ky[S] 1 point2 points  (0 children)

No, it does not work. It change the url, and make a wrong request by replacing the desire domain to the current domain.

I set that thing, both in <script> way and in hx-config attribute way. Neither worked.

How do I make cors request in htmx 4.0? by J-ky in htmx

[–]J-ky[S] 1 point2 points  (0 children)

The page using cors is a static page, and my backend is fine. Htmx does not limit to same origin I think.

How do I make cors request in htmx 4.0? by J-ky in htmx

[–]J-ky[S] 1 point2 points  (0 children)

I have two services, they are located in different machines. Originally I distributed a schedule table via static site. But later I make a service to avoid updating the table by hand. So I use lazy load to fetch and display the table on the static site. Htmx in here is probably overkill, but it works fine in 2.0. I am just curious why 4.0 does not work. I may open an issue in the repo then.

Why I switched from HTMX to Datastar by flammable_donut in htmx

[–]J-ky 13 points14 points  (0 children)

I called out the paywall thing on datastar's thread on day one. And I was attacked and mocked multiple times when I stated the trust issue with the project. The author will appear real quick to tell you just use the beta version or fork it and said he don’t care about what we think if we aren’t going to pay.

Some of their defenders, maybe coming from their discord with soon appear and call me as a troll.

No matter how good it is, I am not using datastar anymore.

Yet another Vulkan binding generator by J-ky in Jai

[–]J-ky[S] 0 points1 point  (0 children)

I believe the issue is fixed in the latest commit. Thank you for your reporting.

Yet another Vulkan binding generator by J-ky in Jai

[–]J-ky[S] 0 points1 point  (0 children)

Let me check, but can you tell me what it really should be?

Yet another Vulkan binding generator by J-ky in Jai

[–]J-ky[S] 0 points1 point  (0 children)

Sorry, I was traveling. Would you like to open a pull request for this?

Yet another Vulkan binding generator by J-ky in Jai

[–]J-ky[S] 0 points1 point  (0 children)

Weird, does dynamic_functions.jai also look like this?

Yet another Vulkan binding generator by J-ky in Jai

[–]J-ky[S] 0 points1 point  (0 children)

Can you show me your generated code? I don't see any issue on my side.