Un manifeste Offpunk
https://ploum.net/2026-08-03-offpunk_manifesto.html
Traduction du Offpunk Manifesto de @ideiasdechirico#offpunk #technopunk #smolnet #smalltech
#smalltech
4 posts · Last used Aug 03
Boosted by @_elena@mastodon.social
Hey folks, can you help me out with a little something: trying to come up with a good number of files limit for a file scan (for Kitten so you don’t hit heap memory limits if you run it from the wrong directory by mistake) and I’d love some statistics from real JavaScript/TypeScript Node.js projects of the number of files in them (excluding .git and node_modules).
Would you be kind enough to run the following command in Terminal in your largest projects and let me know what number your get (along with a short description of the project):
find . \( -name "node_modules" -o -name ".git" \) -prune -o -print | wc -l
Thank you :)
#Kitten #SmallWeb #SmallTech #NodeJS #web #dev #stats #helpWanted
🥳 New Kitten Release
This one fixes a bug that you would have encountered had you had an asynchronous component (component with asynchronous render method) nested more than one-level deep within synchronous components.
(Kitten’s html renderer transparently supports both synchronous and asynchronous render methods.)
So, this (taken from my unit test), for example, works correctly now:
```js
class AsynchronousOtherName extends KittenComponent {
async html () {
await new Promise(resolve => setTimeout(resolve, 10))
return kitten.html`Balkan`
}
}
class SynchronousName extends KittenComponent {
/* NOT async */ html () {
return kitten.html`Aral <${AsynchronousOtherName.connectedTo(this)} />`
}
}
class SynchronousTemplate extends KittenComponent {
html ({ SLOT }) {
return kitten.html`[Before slot]${SLOT}[After slot]`
}
}
class MyPage extends KittenPage {
html () {
return kitten.html`
<${SynchronousTemplate.connectedTo(this)}>
This should render all at once after a short delay.
Hello, <${SynchronousName.connectedTo(this)} />
Replying to on mastodon.ar.al
🥳 New Kitten Release
I just reworked the fix for this to simplify the Kitten renderer (as this fix introduced a regression with components getting instantiated multiple times due to the fall-through logic between asynchronous and synchronous rendering). The renderer now treats every component render function as asynchronous, thereby avoiding the issue entirely.
https://kitten.small-web.org
Enjoy!
💕
#Kitten #KittenReleases #SmalWeb #SmallTech #web #dev #components #async #rendering
You've seen all posts
