Hacker Newsnew | past | comments | ask | show | jobs | submit | piranha's commentslogin

First release happened in 2019


My memory is not great, as implied by that very comment.


GraalVM has evolved from another Sun Research Labs project, MaximeVM, but that was never released as a product.


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


Middle click does not work for me on a Mac. Maybe cmd+click or double click would be ok to do?


Thanks a lot for the feedback and suggestion. And yes, I think it makes sense to add those.


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.


I move around a lot and could be using it on the go. I probably should have said lav-style mic.


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.


Nit: SvelteKit requires a backend on the server (actually it does not you can use it only for the client side rourting and have no SvelteKit backend and talk directly to your own backend) but Svelte does not as it is just a superset of html. Even when using the SvelteKit backend you can disable server side rendering.

But sure I trust you that the htmx way was the way to go for your use case/situation


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...


Why do you feel the need to use lit-html? Just interested in the use-case.


I am not the original poster, but I use lit-html to make the interactive elements on the page like tabs and modals. Then I use HTMX to load the contents of those elements when the tab or trigger is clicked.


That's one of the reasons TwinSpark got actions, you still need little bits of client-side interactivity.


I find things like actions is great for conditionally showing and hiding form fields or small things like that, but if you want to have accessible tabs and modals it is best to bundle it up in a component. Here is an example of a lit components I use, https://codepen.io/megaman821/pen/GRXmzZb and https://codepen.io/megaman821/pen/dydvxBE


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. :)


Could be a todo example with a static json as API ?


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. :)


An action that renders HTML from JSON will either:

— Require additional client-side templates and then it's back straight to hell;

— Require really specific JSON structure, basically HTML-in-JSON, which will be ugly as hell and totally meaningless. Meaningless, because then it means I need to adapt my API to this format, and then I can just make it return HTML.


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?


Sure, if it's only one additional five-liner action that's not even in core, then whoever wants to bring the hell back - it's only their own doing


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". :)


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…


The blog post hints at the first point, but I didn't know about the latter, so thanks for the details !


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: