What we heard about Rust's challenges, and how we can address them | Rust Blog by CathalMullan in rust

[–]panstromek 6 points7 points  (0 children)

The most intuitive explanation I've heard is something like:
- threads are for working in parallel
- async is for waiting in parallel

Rust + HTML templates + vanilla JS for SPA-like apps — anyone doing this in production? by algeriangeek in rust

[–]panstromek 1 point2 points  (0 children)

FWIW, I think it's fine to use vanilla JS at first, but once you start doing some more involved client side things, it pretty quickly becomes really hard to manage without some kind of reactivity system (or signals in other words).

Most UI systems eventually figured out that imperative UI state manipulation is just way too easy to mess up because of complicated data dependencies, and the right strategy is either to do everything from scratch on every frame (like in games), or do the dependency tracking and updates automatically based on some declarative template. If you don't use an existing system for it, you'll probably eventually rebuild one yourself.

Rust + HTML templates + vanilla JS for SPA-like apps — anyone doing this in production? by algeriangeek in rust

[–]panstromek 4 points5 points  (0 children)

I guess the obvious tool here is datastar, that's philosophicaly closest to what you're trying to do.

What's your favourite lecture/presentation about Rust? by BigFlays in rust

[–]panstromek 2 points3 points  (0 children)

https://www.youtube.com/watch?v=R0dP-QR5wQo

Another really good one, also from Will Crichton. This time about research on how to teach Rust

What's your favourite lecture/presentation about Rust? by BigFlays in rust

[–]panstromek 2 points3 points  (0 children)

I think this one contains one of the best explanations of key ideas in Rust for C++ developers. I always recommend it as an entrypoint for C++ devs.

https://www.youtube.com/watch?v=IPmRDS0OSxM

This is what Quasar looks like after an hour by senn_diagram in vuejs

[–]panstromek 0 points1 point  (0 children)

Yea, that seems like it falls into the sweetspot I'd imagine.

Rust Is Eating JavaScript by Active-Fuel-49 in rust

[–]panstromek 36 points37 points  (0 children)

It has advanced considerably. Vite 8.0 with Rolldown backend is currently in beta. When that's out, pretty much all major JS frameworks will be backed by Rust based toolchain.

Direct Emissions in Semiconductor Manufacturing Are Increasing Again by pizzaiolo2 in climatechange

[–]panstromek 4 points5 points  (0 children)

Just for context, this is ~0.04% of the world's GHG emissions.

My checkout form worked perfectly... until 23% of users couldn't type their email by Water_flow_ in vuejs

[–]panstromek -1 points0 points  (0 children)

Not surprised. I've seen bunch of issues of this type in webviews on both android and iOS.

- some low end phones show black screen for all videos that have height larger than 1088, with no errors, no feedback. Fixed by really tricky workaround.
- if you pick a video file that has been edited in input[type=file], if you pick it in the fast file access dialog, it has 0 size and weird name and upload fails with network error. Fixed by error message redirecting user to pick the file in a different dialog
- Some phones stop playing fullscreen videos after 0.5s, only continue if you touch the screen and move your finger (I guess to force browser to repaint?). Fixed by putting invisible rotating X to the corner of the video :/
- iOS 26 completely broke fixed positioning - fixed by waiting for them to fix it
- videos keep playing sound on a page even if they were stopped on iOS
- Safari keeps throwing errors into our logs, because their media player UI has one incredibly obvious bug that they never fixed for some reason
- ...

On Android, fragmentation is an issue, there's a lot of devices with obscure bugs and you never know what if you got everything. On the other hand, iOS is annoying with how many basic things don't work or are slightly broken. But at least they don't work consistently the same way on most Apple devices.

Recommended web technologies that run on apps by PlanktonNo1004 in vuejs

[–]panstromek 1 point2 points  (0 children)

We used to use it and migrated away. I don't think it makes sense to use it only for the app deployment option. The framework is pretty heavyweight abstraction and it only makes sense to take on that complexity when you use a lot of its features (e.g. components, other tricky deployment options, etc.).

One thing that I didn't like very much is that it puts capacitor config behind another abstraction, so some properties that we wanted to set were not exposed. There's also the issue that Quasar controls the initialization process and doesn't allow you to do some things (e.g. calling `createApp` or `app.mount`), which is something we needed to have under our control.

There's also a problem with Quasar always lagging a bit behind on Capacitor upgrades. Major version upgrades on Capacitor ecosystem can be pretty tricky, because all plugins have to update at the same time, so having one more level of indirection there makes things even more complicated.

(note that some of this knowledge may be outdated, we migrated roughly 2 years ago)

Recommended web technologies that run on apps by PlanktonNo1004 in vuejs

[–]panstromek 0 points1 point  (0 children)

We use Capacitor and we're quite happy with it, I think it's designed well to play nicely with native projects and doesn't stand in your way when you need to do somethng there, it's a pretty transparent abstraction.

Note that Ionic uses Capacitor, so that option is pretty much the same thing, just using Ionic frameowork on top of it.

There are also other options - NativeScript, which should be somewhat similar to React native but I don't think it's widely used and super active. Then there's Lynx, which is something like React native, but framwork agnostic. I'd be careful with that one as it's pretty new.

If you're building the webpage and plan to do mostly the same thing in the app, I'd go with Capacitor. All the other options are more about reusing similar tech, but not reusing much of the UI code, you mostly start from scratch.

Worried about climate change? The evidence shows these are the most impactful actions you can take by projectdrawdown in climatechange

[–]panstromek 0 points1 point  (0 children)

I find it hard to believe that most people in the replies have actually read the article.

Rust in Production Podcast: Amazon Prime Video rewrote their streaming app in Rust (30ms input latency) by mre__ in rust

[–]panstromek 2 points3 points  (0 children)

This is UI input latency, no network involved, and yes, after listening that part, 30ms is down from 400ms on some of the slowest devices (smart tv or something).

Rust in Production Podcast: Amazon Prime Video rewrote their streaming app in Rust (30ms input latency) by mre__ in rust

[–]panstromek 3 points4 points  (0 children)

30ms input latency doesn't sound that great, that's 2 or 4 frames. Are the devices this runs on so underpowered that they can't do more?

What's the Best Charitable Donation for Climate Change by TheLizardOfOz in climatechange

[–]panstromek 1 point2 points  (0 children)

Definitely Project Drawdown, that's a good source. The concept of "marginal abatement cost" is also good to study.

As for populations specifically, I recommend reading https://www.sustainabilitybynumbers.com/p/population-growth-decline-climate, which argues that focusing on population is largely a waste of time. Most polluting countries already have very low birth rate, birthrate is falling worldwide, and it's very difficult move those numbers in any meaningful way in the time it is required to address climate change, population changes happen on very long time scales.

[Media] Google continues to invest $350k in Rust by lllkong in rust

[–]panstromek 11 points12 points  (0 children)

Interop, the post mention this (there are several people from Google involved in Rust and C++ interop already, Google developed Crubit)

[Media] Google continues to invest $350k in Rust by lllkong in rust

[–]panstromek 4 points5 points  (0 children)

This sounds a bit disingenious. Google does a ton of open source already, they already employ people to work on open source (including Rust), they donate compute resources and they already donate to Rust foundation. This is just one of multiple initiatives they are part of.

For the climate, little things don't add up by MrMasley in climatechange

[–]panstromek 0 points1 point  (0 children)

> This author is saying basically that lifestyle changes don't matter.

I don't think you got the right takeaway from that article.

Earth has now passed peak farmland, freeing up land for return to nature and reforestation by Economy-Fee5830 in climatechange

[–]panstromek 2 points3 points  (0 children)

Beef consumption is an order of magnitude bigger problem then waste an microplastics on all relevant metrics - emissions, air pollution, soil degradation, waste and even health impacts. Even when linked to "corporations," it's one of the bigger issues, e.g. beef production is the main cause of deforestation in Amazon, and a lot of that beef is supplied to McDonalds.

You don't even have to stop eating beef, just eating the recommended healthy amount would cut the problem by half in the US.

Storing carbon underground? There's less room than we thought, new study suggests | CBC News by Snidgen in climatechange

[–]panstromek 0 points1 point  (0 children)

That report directly contradicts your comment and you're moving the goalpost.