HackerTrans
TopNewTrendsCommentsPastAskShowJobs

piranha

no profile record

comments

piranha
·4개월 전·discuss
> Rule 5 is often shortened to "write stupid code that uses smart objects".

This is probably the worst use of the word "shortened" ever, and it should be more like "mutilated"?
piranha
·작년·discuss
First release happened in 2019
piranha
·작년·discuss
That's a fantastic idea! I've made it a bit simpler for myself — basically just `source file`, so that I don't need to press enter to execute it, but also added one cute detail in the loop:

    if [[ -f "$target/.exec" ]]; then
        zsh "$target/.exec"
    fi
piranha
·2년 전·discuss
Middle click does not work for me on a Mac. Maybe cmd+click or double click would be ok to do?
piranha
·3년 전·discuss
Why bluetooth? Buy something like Samson Q2U, it's cheap, usb-enabled, and dynamic, so that you don't need a treated room or a house empty of noises.
piranha
·3년 전·discuss
Actions are somewhat similar, yeah, even if much more limited.

Svelte was too js-heavy, and it requires js backend to be rendered on the server - while we had no js engineers. Plus markup was already done, as we rendered it server-side when using React.
piranha
·3년 전·discuss
Yeah, that was the inspiration. If you know, htmx predecessor was called intercooler.js, so I just continued the automotive theme. :)

I had a reference on main page for a long time...
piranha
·3년 전·discuss
That's one of the reasons TwinSpark got actions, you still need little bits of client-side interactivity.
piranha
·3년 전·discuss
Why do you feel the need to use lit-html? Just interested in the use-case.
piranha
·3년 전·discuss
Yeah it’s only the first way, since the second is effectively the same as rendering html on the server.

As for the first - it could give a way to use legacy apis and static data. Not sure if I want this in the core, but… how hard can it be?
piranha
·3년 전·discuss
There is no way to render JSON as HTML right now, it expects server to return HTML.

OTOH that's an interesting thought and it feels like just an addition of one command to whatever there are in actions ( https://twinspark.js.org/api/ts-action/ ) right now... I need to think about it a bit. :)
piranha
·3년 전·discuss
Thanks for that message, it was just hard for me to decide on what to put in there :)

But your comment forced me to, so I've put something in there, even if it's not really thought through. :)
piranha
·3년 전·discuss
It's more like an alternative implementation of htmx. Alpine is more about "let's do components in HTML", and this one is more of an idea "how do not go there, but still have practical results". :)
piranha
·3년 전·discuss
Two reasons really: I wrote it before htmx appeared, so it already existed and a few projects were using it in production. And second one - I really hate attribute inheritance, and it’s everywhere in htmx…
piranha
·3년 전·discuss
Basque - sure, but Finnish and Hungarian? :-) Those were too far away for Romans even to have contacts with them. :)
piranha
·3년 전·discuss
I haven't read your report completely, but it's very interesting.

I would love to hear a bit more details about query selector performance. Could you maybe provide some details or a pointer where this was tested?

Also about websockets vs HTTP calls: HTTP calls do not open separate socket connection even when you're using HTTP/1.1 with keep alive, with HTTP/2 it's a default way of working, so should not be a problem. I guess something else is a culprit here?
piranha
·3년 전·discuss
It's not even close - it's not feasible to develop a real server application in a notebook, while you're absolutely will be doing REPL-driven development in Clojure.
piranha
·3년 전·discuss
I did that with two Caddy servers (one on my host and another locally) and Tailscale (ssh tunnel at first): https://solovyov.net/blog/2022/ngrok-for-the-wicked/
piranha
·3년 전·discuss
Not really, you're looking at this very superficially. It's just an unfamiliar syntax.

If you're really interested, just try to get through that syntax once and you'll find that it's not that alien.
piranha
·3년 전·discuss
I wrote my own unpoly (so to speak) to transition from React, for a pretty big ecommerce marketplace: https://solovyov.net/blog/2020/a-tale-of-webpage-speed-or-th...