Lurker News

Comments (93) 46 threads

saidinesh54 replies#
I think Qt/QML really reached hit sweet spot for me when it comes to describing UIs (ignore if any syntax errors, doing this from memory):

For eg. compare this:
``` Window { textColor: "slategray" property int v: 40

    ColumnLayout {
        id: layout
        anchors.fill: parent
        spacing: 20

        Text {
            id: number
            Layout.alignment: Qt.AlignHCenter
            font.pixelSize: 70
            text: v
        }

        ProgressBar {
            id: progressBar
            Layout.alignment: Qt.AlignHCenter

            value: v/100
            color: v < 50 ? "dodgerblue" : "turquoise"
        }
    }

    MouseArea {
        anchors.fill: parent
        onClick: v = (v+20)%100
    }
} ```

with Declare:
``` App [ textColor = slategray,

    group: View [ x = center, y = center, width = 80%,
        layout: SimpleLayout [ axis = y, spacing = 20 ],

        number: Text [ width = 100%, textAlign = center,
            fontSize = 70, fontWeight = bold, text = { "" + v } ],

        bar: Gauge [ width = 100%, value = { v },
            tint = { v < 50 ? cool : warm }, accessibilityLabel = "v" ],

        hint: Text [ width = 100%, textAlign = center,
            text = "click anywhere to change v" ]
        ],

    v: number = 40,
    cool: Color = dodgerblue,
    warm: Color = turquoise,

    onClick() { v = (v + 20) % 100 }
    ]
```
pennomi1 reply#
QML was really something special. I’m sad that type of syntax never really caught on in the wider UI world.
demo45671 reply#
Yes. I love Qt/QML. Nothing has replaced it for me since. I find android/ios too hard to read, until Jetpack compose came along and even then. Dart is better
andyfilms1#
It's so interesting how different frameworks appeal to different kinds of people. For me personally, I regret every second I've ever spent writing glue code. The whole signals/slots paradigm killed my desire to use Qt every time I tried it.
0x0731 reply#
Sad that it's similar slow and memory hungry like winui (qtwidget app use 10mb => qml 100mb).

Additional to it it may have more fps, but feels less snappy.
I still use it as it's better than electron, but still makes me sad.

saidinesh5#
As good as QML / QtQuick is, I feel like it makes it very easy to create slower applications by creating too many objects, and too many property bindings.. A lot of QtQuick widget libraries made all kinds of mistakes and you end up really sluggish desktop applications.. even though - the fps counter shows 60 fps..

But I have also seen really well optimized QtQuick applications that ran at 60 fps on a single core imx6 while playing video, applying all kinds of effects on the video...

ogoffart1 reply#
It lives on in Slint. The syntax is inspired to QML, but statically typed and compiled to native code (no JS engine, no browser). Can be used from different programming languages. https://github.com/slint-ui/slint
saidinesh5#
I actually used to follow Slint back when we used Qt at $DAY_JOB! I learned quite a bit about compilers looking at your repo back then..
KuhlMensch#
Hm. Its great.

I'm happy enough the with xml-based tsx - if only to differentiate between declared structure v.s. expressions.
Especially (with what I've seen briefly) of Solid v2.
But I'm sure I could get used to the above quick.

abrookewood5 replies#
The LLM language is pretty off putting: "Say what you mean. Exactly" and then in the code comments "// One value, v, and three things that follow it". It's such an awful way of writing.
triyambakam#
Yes, it's definitely Claude and so dumb. More GPT models seem to do this less. But unfortunately Claude is just otherwise so much better lately.
bensyverson3 replies#
I wish I had a name for the "One value, and three things that follow it" construction. I think the model feels it's being dramatic, but it's borderline nonsense.

"Two vectors, and the one invariant that binds them." WHAT ARE YOU TALKING ABOUT

topicalSoup1 reply#
There actually is a name for this: “mannered prose”. It’s terrible.
bensyverson#
That's the umbrella term, but I want a name for "seventeen of them, and two are never true"… As if the model has to pay for nouns.
qingcharles#
One invariant to rule them all, and in the darkness bind them.
abrookewood#
I'm soo sick of hearing it.
ShinyLeftPad#
It's so out of place in open source. I hope people get fed up with this marketingspeak soon and straight old-school websites get trendy again.
mattbettinson1 reply#
I call them "corporate mic drop moments". It's punctuated like that at the end of every paragraph and its so grating
abrookewood#
Yeah, it's a good description. Everything has to sound dramatic.
Syzygies2 replies#
I managed to train my agents to comment in my style. It was hard work; one has to stay on it. Judge here the human's lack of effort, not the untrained dog.

The hardest similar problem I've faced was teaching agents aesthetics for a drawing style. What worked: I hand-engineered an interpretable feature space for SVG diagrams, and used the feature vectors of exemplars as the style target for generation. The agents then wrote code one-shot that drew as I liked.
AI is a kit, not a car where you turn the key. We're all facing the same issues, and many of us are constantly engineering infrastructure to "fix" AI to our needs. Consensus forms fast, and much of this engineering becomes available out of the box if one instead just waits a few months. Reification of state between sessions is the big one we all used to do by hand, that's now standardized.
Feature spaces would work for teaching comment and writing styles. Try it!

dallen332 replies#
Bro this sounds like AI.
frizkie#
You don’t say
Syzygies#
These are the correct terms for the math, and the same math is behind AI.

Before I fixed my language, my original was "A key component of LLMs is a semantic embedding into a large vector space. I struggled with teaching LLMs aesthetic judgement, and what worked was building hundreds of sensors to measure aspects of an SVG diagram, and embed art that I liked into a corresponding vector space. Then I could tell an LLM coding agent "draw like this!" and it could, one-shot."

pavel_lishin#
It sounds like you changed your style to sound more like AI.
mapcars1 reply#
Not sure how it supposed to be used. Its a whole new language with its own constructs and rules, no training data for LLMs to use it well, syntax is questionable, and as much as it tries to stay declarative its already clear that it can't: onClick() { v = (v + 20) % 100 }

At this point I don't see any pros compared to any existing reactive framework.

hungryhobbit#
Exactly, to any React dev JSX is much clearer than this.
TonyAlicea104 replies#
It's extraordinary to me how many people are ok with having horrific Claudish fill the landing pages for their projects.

For now, I would urge project creators to start using Neon for writing docs and landing pages. It's significantly better out of the box.

ricardobeat1 reply#
Absolutely, just used Neon to rewrite a ton of comments and docs and they are so much better. Neon + diataxis [1] produced documentation indistinguishable from human writing.

Meanwhile, Claude has become immune to skills that try to tame its writing style. I think they’re prioritizing preventing distillation vs their own product UX, which is a shame.
[1] https://diataxis.fr/

mamcx1 reply#
how combine with diataxis?
ricardobeat#
Just point to the website, no skill file needed.
talmr1 reply#
As soon as I see that I just quit the tab.

I don’t think it is worth giving my agent to peruse either, because it will get poisoned.
Hard skip. And maybe even block.

stronglikedan1 reply#
> As soon as I see that I just quit the tab.

Claude has ruined Solarized for me. As soon as I see that theme (light or dark), I quit the tab. I don't even need to start reading.

talmr#
Ha! I have used solarized theme since I was a kid, for my editors, terminals, even my OS theme.

I am making some software currently which has a solarized background but white containers on top.
The claude solarized + burnt orange is quite unpleasant, however.

qingcharles#
+1 for Neon. Its writing is a step above the others. It's still AI, but it's better AI.

Load more comments