Hacker Newsnew | past | comments | ask | show | jobs | submit | ben-schaaf's commentslogin

I did a quick test on various of my rust projects. Most of them it failed to run, on one it miscompiles(?) causing a test case to fail. The only project I got it to run without issue is a basic actix-web website. It takes a whole 14 seconds to actually start the web server. A clean compile is only 24s for all dependencies, and a regular incremental debug build is 2.3s.

The hot patching is unusable. It takes 11s to compile the patch after a simple change: (Some("hi") -> None), and then relax gets a compiler error when refreshing the page.

The project where it miscompiles only has a few very basic dependencies; a clean compile takes 1.3s, incremental just 0.25s and tests take ~0.1s. Relax takes a whole 1.4s to run the tests (unsuccessfully).


I've been using it successfully for makepads own development iterations for quite some time. This release is the first real outside test. Strange you are getting such wildly different numbers tho.

> Yes, it's something that should be pushed back on...

How do you envision that pushback if it's not people complaining about it?


I work on a GUI toolkit professionally. Immediate-mode libraries are cool, but they absolutely in no way shape or form scale better. Having to evaluate and layout the entire UI for every state change is fundamentally not scalable. Doubly so if you need to do this multiple times to reach a steady-state layout like you do in some cases with egui.

you can cache layouts with immediate mode libraries. in terms of scaling, it really depends - if you have many components updating at once, the benefits of retained mode libraries are diminished if not reversed. when people create demos of 10,000 list elements and updating a single one, it's basically designed as a best case scenario for retained mode. try updating the entire list...

but i can make strong claims about the benefits of not needing to duplicate your state inside of your ui framework. that alone removes an entire category of work, and i would argue scales better from a conceptual/dev standpoint.


> you can cache layouts with immediate mode libraries

There's all sorts of caching you can do with immediate mode; like you said, caching the layout in a large list. The end result is the same as retained mode, with all the same complexities. Might as well skip reinventing the thing.

> try updating the entire list...

If you're comparing like-for-like, whether you're doing layout for the entire UI in immediate mode or retained mode shouldn't make a big difference. You're doing the same calculations after all.

> but i can make strong claims about the benefits of not needing to duplicate your state inside of your ui framework

I've found it's often not necessary to duplicate state in the UI framework; you can frequently make UI controls the owner of the state.


to some extent retained mode is a cache invalidation problem. imgui's sidestep this, except for a constrained set of cases where building the ui requires doing a lot of work, in which case a simple, bespoke cache can be used - to me this is far simpler than trying to wrangle your entire application through a generalized state cache abstraction. especially since doing so generally requires you to deeply adopt the UI framework's abstractions into your application code, regardless if it's a good fit or not - like you said, you can avoid duplication, but the tradeoff is massive coupling.

i think a glaring red flag with retained mode ui's is how slow they are. there is a reason they put so much effort into granular reactive updates - they're just way too slow otherwise. resize retained mode ui windows and the fps drops to like 2. meanwhile in an imgui, it doesn't matter if you're rendering 1000 buttons and then need to render 1000 dropdowns, the work is roughly identical. this means big problems for a retained mode system. this seems like a massive issue to me - the system is so slow, it's only considered "faster" than imgui (debatable) when it doesn't actually do much. but we want ui's to scale with interactions, not depend on minimal changes in order to recover acceptable performance.


> resize retained mode ui windows and the fps drops to like 2

This just isn't true? Every desktop application I use uses a retained mode UI and most of them resize smoothly. Most of the ones that don't are electron.

I genuinely don't understand how you can make this claim right after agreeing with me that the only difference is the caching. You can't seriously be claiming that by just adding a layout cache you lose 30x performance?


Anyone making this claim just hasn't played a lot of factorio, because this just isn't true. Player feeding is fast in the early game, but it just doesn't scale. There's too many buildings to feed and it takes too long to walk between them. People have already made tool assisted speedruns, and as expected it involves building a huge automated factory as quickly as possible.

I played Factorio quite a bit..

I said it's plausible. Perhaps not for basic materials, but things like robot frames, higher tier research packs, modules, anything that has low component amount compared to time or amount required for crafting.

Even speedrunners do quite a bit of handfeed. And if AI/player cannot figure out the automation fast enough - the handfeed might easily come on top.


You don't need an OLED to get poor text rendering on macOS, that came for free with Mojave when they removed subpixel antialiasing.


I agree it's fine and good that they want to sell this and keep it accessible for individuals, but modifying a CC-NC license and then calling this "open source" is not it.

If everyone followed this model instead of open source, then Corridor Key itself would have to cover dozens of software licenses for all it's dependencies.


The execute stage very much modifies state; in fact it always modifies state. Any non-memory instructions modify registers, and any memory instructions either write to registers or to memory. Even a noop will increment the instruction pointer, so you're always modifying a register regardless.


Reading that code there's a 48-bit counter used for each millisecond, so ~281 quadrillion UUIDs per second.


Monitors have also gotten incredibly cheap, and there's Sceptre who sell dumb TVs that are pretty cheap. So I don't really buy that they're selling TVs at a loss.


Consider the differences in hardware and customized software between a dumb and "smart" display. They are not the same.


Not sure the point you're trying to make, it sounds like you're agreeing that dumb TVs should be cheaper than equivalent smart TVs?


That's why Anthropics C compiler worked so well; because they had gcc's huge repository of tests to lean on. Oh wait...


Yeah, their ccc had no testsuite at all. I ran it through my testsuites and it failed miserably. plus they failed to look at any PR. At least their agent could look at the PR's.


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

Search: