Posts
Factoids
RSS Reader
Karma
Logs
Tags
Atlas
Back to the channels
#primate
Previous day
27 May 2026 (America/New_York)
Next day
14:04 blue phaleth: hi
14:05 phaleth hi blue
14:05 blue @primate/marko is going to experiment with publishing source files to npm; particularly .marko tags. I'm pushing for edge compilation
14:05 phaleth edge compilation?
14:06 blue yes, the app itself should be the one compiling
14:06 blue the traditional npm trade is to precompile and then serve something like a dist.js or so
14:06 blue that is in some ways good and in many ways terrible
14:06 phaleth the compiler is gonna be sent to the client?
14:06 blue s/npm trade/npm way/
14:06 blue no
14:07 phaleth or as a dev tooling?
14:07 blue we're gonna publish source files, and the one compiling them is the app (in this case primate)
14:07 phaleth ok, so devDependency then
14:07 blue that is because the app knows best what it needs, and what are the conditions for compiling the source files
14:07 blue it's not directly related to devDependency
14:07 blue it's just the question whether you precompile non-js or not
14:08 blue if you precompile, you're more inclusive in who can consume it
14:08 blue but the truth of the matter is that you're only ever going to consume .marko files if you use marko, or .svelte files if you use svelte
14:08 blue you're not going to have a general-purpose, non-svelte apps that consumes a .svelte file
14:09 blue app*
14:09 phaleth well, if it's some kind of optimizing compiler then I guess that's fine, but a lot of them are not
14:09 blue so alongside @primate/marko, I'm providing two tags: <Field> and <Form>
14:09 blue the question is whether I precompile them or not
14:10 blue I decided to not precompile them
14:10 blue and just publish them directly to npm
14:10 phaleth npm is full of broken stuff
14:10 phaleth I mean non-js
14:10 blue yes, and I'm adding more broken stuff
14:11 blue but precompilation in the case of npm is the devil's work
14:11 phaleth at least you name it .marko and not .js
14:11 blue yes, the svelte guys keep doing that and it drives me inside
14:11 blue s/inside/insane/
14:11 blue there's more beauty to it, though: I'm using the `marko` runtime key to drive that compilation
14:12 blue this is arguably one of the best use cases of runtime keys
14:13 blue https://github.com/primate-run/primate/commit/b0eb1187313cdd49946c5b46d7bbef8df688e004
14:13 nevet marko: full support for version 6 · primate-run/primate@b0eb118
14:13 blue you can see the work here. it doesn't include the .marko runtime key yet though
14:14 blue note that unlike all the other frontends we support, marko does not have a meta framework for it, so primate's gonna be the first (that I know of, anyway)
14:17 phaleth if marko can replace svelte on primate website while not adding more bloat then lets use marko
14:17 blue that's the idea, and it might work for 0.38
14:18 blue 0.39*
Search posts