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

This looks very interesting! Do you have any tips/pointers on how one could use Coi to generate a component and then integrate it into an existing project which uses a traditional Javascript framework?

Never forget that the majority of what you see online is biased towards edge framing, being the subject matter incredible or terrible. Just as people curate their online profiles to make their lives appear more "appealing" than they actually are, they do the same curating in other areas.

> edge framing

is this a term of art? I interpreted it as "people only show off the best of the best or the worst of the worst, while the averages don't post online", though I've never heard the term "edge framing" before


Not that I know of, it just occurred to me while trying to be descriptive and succinct at the same time. English isn't my mother tongue.

Why should we care about what non-technical people do wrong in a technical domain?


..and be unemployed.

The article doesn't define any target audience in specific, so there you go.


I don't think learning a new tool will cause you to be unemployed.


yeah, I'll try htmx if he will maintain the resulting pile of goo lol


They explained it. It goes against the client's goals. Massive investment in customer support? It's about generating leads. I think you're seen it as a SaaS offering which the writer has mentioned multiple times, isn't the case for the client.


"Compatibility issues across system webviews are exceedingly rare, especially for the major operating systems."

When it comes to CSS, there will be the same vendor issues that you have on websites. It's not a magic bullet.


That's a rather obscure conflict, when you think that the two have no domain overlap


If the secrets are in a .env file and you have them in your .gitignore they don't, as you should.


did you miss the part where the agent immediately went around it?

the .gitignore applies to the agent's own "read file" tool. not allowed? it will just run "cat .env" and be happy


The problem lies in the fact that these companies are generating work for volunteers on a different time-scale and binding them to it by giving them X days before disclosing vulnerabilities. No one wants their project to have security vulnerabilities that might affect a lot of users, which creates pressure in dealing with them.

The open source model is broken in this regard, licenses need to address revenue and impose fees on these companies, which can be used as bug bounties. Game engines do this and so should projects like FFMPEG, etc. The details are complex of course, but the current status quo is abusing people's good will.


It seems Rust has now achieved the glorious status of JS's "there's a new UI framework coming out every day"


It's kind of an exploratory phase for what works sensibly with Rust's borrow checker, especially since most UI libraries/frameworks really rely on a GC.


And none of them really work for non-trivial apps! Welcome to hell


I'm using EGUI for a all-in-one molecular viewer / CAD. It's like PyMol, Coot, GROMACS and VMD in one. If this is trivial, I would like to see what you consider to be non-trivial!

There are parts of the rust ecosystem that are only built for trivial apps (And demos, blog posts etc), but GUI is not one.


Look, your application is certainly impressive, but it's extremely basic from the perspective of a UI toolkit.

- It's not multi-window, so it doesn't have to integrate with a bunch of the OS window management affordances.

- It doesn't have any complicated typesetting or rich text editing, so you get to pretty much ignore that whole mess.

- Since it's a very visual tool that doesn't make much sense for blind folks, you haven't invested much in accessibility support.

- And so on...

This is a great use case for EGUI, and EGUI works great in this sort of UI-lite scenario. Whereas I wouldn't want to use it to implement something on the complexity of VSCode/Excel/FireFox.


Is that application by any chance open source?



Awesome! Thank you!

And quite amazing work, so thank you for sharing. This will be fun to dive into. I'm generally liking egui but have just recently been using it, so I'm still new at it.


It’s just not actually a very good language for writing UIs in compared to say Dart, Swift or Kotlin.


Yeah, it turns out the popular UI paradigms rely on a lot of mutable state


The most popular language by far used for writing UI is JavaScript, and the go to framework this day (React) doesn't use that though.

From the various experiments that popped up over the years, it's pretty clear that the React way works pretty well for Rust, but it's also too slow to be desirable for Rust (what's the point of using Rust for UI if you're going to have web-like performance).

And then again, making a half decent UI framework is a gigantic task, there's just not a whole lot of languages with a decent UI story at all, no matter what's the paradigm of the programming language. (And if you want a language for cross-platform UI, I'd argue that the only one that ticks the box is JS with React in Electron and React Native, and it's not even truly a single framework).


A UI is by definition a view of some mutable state.


The view part would be fine, the problem is updating the state. In a language which discourages shared mutability, most of the solutions are not terribly ergonomic.

You either end up needing to:

- handle all your state via interior mutability (i.e. Arc<RefCell<_>>)

- use a reducer (i.e. the state blob is immutable during rendering, updates are deferred via events that are delivered between frames)

- or invert the relationship between state and view (i.e. immediate-mode) which comes with it's own implementation challenges (caching immediate mode views is hard)


> - use a reducer (i.e. the state blob is immutable during rendering, updates are deferred via events that are delivered between frames)

This is how I implemented my last Angular project, works fine for non-trivial tasks.


Rust is fine with mutable state, it just strongly encourages that it not be shared. Egui seems fine, we've used it to good effect.


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

Search: