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

Anyone working on something similar that compiles to go?

I think this is a step in wrong direction. We really need to move away from this XML inside/alongside JS ugliness prevalent in the webdev ecosystem.

What I really want are kotlin style builders or F# style computation expressions.


What is the point of stating your opinion if you're not going to explain why you believe that?


how are kotlin style builders or F# style computation expressions better than jsx, svelt, tsrx or any of the other sort-of-html in js/ts syntaxes?


I like the nim language, but the lack of interfaces has been a bit of a turn-off for me.

Do nim programmers not see the need for abstracting out behavior in a manner that different implementations can be switched somewhere else, or is there different idiomatic way to handle this?


Nim doesn't have interfaces, but concepts + parametric polymorphism gets you a long way - https://jasonbeetham.ca/writeups/codereuse.html


We use custom types for that usually, optionally with parametric polymorphism.

But as others said already, Nimony (codename for the next Nim iteration) introduces revamped concepts which should be even more convenient.


The concepts feature of Nim really looks like what your looking for https://nim-lang.org/docs/manual.html#concepts


Vue style attribute directives are imho a far better dx compared to all of the above.


Cool utility. Horrendous name.


lowkey thought it is a genius name

tee (Unix command that splits output) + mux (multiplexer) = teemux


Pronounced tmux. That's a thing. A very related thing. A very well-known thing. It's a bad name. I do like the concept though (haven't tried using it yet).


Fair point


Obvious reason would be that all major js libraries have ts definitions available now and if the language is TS based they can all be used without compromising with type-safety.


The end result seems very close to svelte with runes, except with lower learning curve because we dont have special syntax for things like loops, conditionals etc.


Curious if there is something similar that works with sqlite.


There is FerretDB v1, which provides MongoDB protocol for SQLite. See https://github.com/FerretDB/FerretDB/tree/main-v1


They seemed to have moved away from that.

From https://docs.ferretdb.io/migration/migrating-from-v1

> Unlike v1.x that provides options for PostgreSQL and SQLite as backend, FerretDB v2.x requires a PostgreSQL with DocumentDB extension as the backend


As of 3.38 (or 3.45 if you meant a binary JSON structure specifically) https://sqlite.org/json1.html


We can use json type, but the dx around directly using that is not comparable to mongodb. Which is why I was looking for a similar abstraction.


This looks cool, love the API.

I don't any support for lifecycle hooks (eg. something like onMount when the returned node will be attached to the document) in the component api. In absense of those, I imagine integrating with vanillajs libraries will be difficult (eg. codemirror, slickgrid etc.) Curious what your thoughts in the matter are.


While in a rendering scope, `getParentElement()` will get you access to the raw DOM element. As long as you don't detach/move it, you'll be fine letting third-party code loose on it.

Aberdeen has one life cycle callback: `clean`, which is called right before rerunning or destroying a scope.

I think that's enough for just about anything you'd want to do.. ?


I think an underappreciated library in this space is Logux [1]

It requires deeper (and more) integration work compared to solutions that sync your state for you, but is a lot more flexible wrt. the backend technology choices.

At its core, it is an action synchronizer. You manage both your local state and remote state through redux-style actions, and the library takes care of syncing and resequencing them (if needed) so that all clients converge at the same state.

[1] https://logux.org/


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

Search: