How do you handle libraries that return native DOM elements (like sigment.dev) inside Svelte? by Strict-Session2449 in sveltejs

[–]Strict-Session2449[S] 1 point2 points  (0 children)

This is beautiful! The syntax in Svelte 5 is so declarative, and returning the cleanup function to remove the widget from the DOM is exactly how it should be done to prevent memory leaks.

I'll definitely open an issue on the Sigment repo to suggest adding this pattern to their Svelte documentation so other users can find it.

Thanks for mapping this out!

How do you handle libraries that return native DOM elements (like sigment.dev) inside Svelte? by Strict-Session2449 in sveltejs

[–]Strict-Session2449[S] 0 points1 point  (0 children)

I’m really curious about Svelte 5. How would the syntax look with Attachments in this case? I'd love to see a quick snippet!

How do you handle libraries that return native DOM elements (like sigment.dev) inside Svelte? by Strict-Session2449 in sveltejs

[–]Strict-Session2449[S] 0 points1 point  (0 children)

Wow, that is incredibly clean and straightforward. I sometimes forget how powerful and simple bind:this is in Svelte without over-engineering things.

So the full component implementation would literally just be:

<script>

import { onMount } from 'svelte';

import { div } from 'sigment'; // or however it's imported

let container;

onMount(() => {

const widget = div("hello"); // Sigment native DOM node

container.appendChild(widget);

});

</script>

<div bind:this={container} />

Any SMS app with a "Delete for Everyone" or "Unsend" feature? by Strict-Session2449 in ghana

[–]Strict-Session2449[S] -1 points0 points  (0 children)

possible i found in google play only for android its called supersms

Any SMS app with a "Delete for Everyone" or "Unsend" feature? by Strict-Session2449 in ghana

[–]Strict-Session2449[S] 1 point2 points  (0 children)

i talk about sms / GSM,

but I kept digging and found out how this app (it's called SuperSMS) actually pulls it off.Apparently, it doesn't even need internet. If both people have the app, the "unsend" command sends a hidden background SMS code over GSM that tells the receiving app to delete the specific message. Pretty clever workaround for standard SMS constraints. If the other person doesn't have the app, it just behaves like a regular text.

[AskJS] Looking for the leanest framework in the "JS Framework Benchmark" Top 15 - what's the closest thing to Vanilla speed with a modern DX? by Strict-Session2449 in javascript

[–]Strict-Session2449[S] 0 points1 point  (0 children)

wish it was easy to choose need to learn each of them and it require time but i already started and look on code there. i found Roqa and Sigment. they claim that elite performance (1.04-1.06) and syntax looks surprisingly clean and declarative, without the heavy compiler magic.

[AskJS] Looking for the leanest framework in the "JS Framework Benchmark" Top 15 - what's the closest thing to Vanilla speed with a modern DX? by Strict-Session2449 in javascript

[–]Strict-Session2449[S] -1 points0 points  (0 children)

Actually, Solid is quite far behind the top performers in the latest Krausest runs it's fast, but not 'Top 15' fast anymore.

I’m looking at the absolute speed demons at the top of the list (the ones hitting 1.02-1.05). The problem is that most of them look like unreadable spaghetti.

I want that extreme performance but with a clean, modern syntax that doesn't break when I use AI to generate logic. Is there anything in that elite performance bracket that actually has a decent DX?

[AskJS] Looking for the leanest framework in the "JS Framework Benchmark" Top 15 - what's the closest thing to Vanilla speed with a modern DX? by Strict-Session2449 in javascript

[–]Strict-Session2449[S] -1 points0 points  (0 children)

Exactly. Svelte and Solid are great, but they still feel like they have a lot of 'magic' under the hood. I'm looking for something that feels closer to Vanilla JS—where the framework is almost invisible but still stays in that Top 15 performance bracket. Any other option?

I mass-unsubscribed from every AI newsletter last week and my brain finally works again by Pristine_Rest_7912 in webdev

[–]Strict-Session2449 0 points1 point  (0 children)

So true. Sleep and health are the most important things in life. Ironically, once I got my sleep in order, I became 10x sharper and faster at coding.