August 4th, 2024

Photino: A lighter Electron

Photino is an open-source framework for building lightweight, cross-platform desktop applications using various programming languages and web frameworks, offering smaller application sizes and reduced memory usage compared to Electron.

Read original articleLink Icon
Photino: A lighter Electron

Photino is an open-source framework designed for building lightweight, native, cross-platform desktop applications using Web UI technologies. It allows developers to utilize fast, natively compiled languages such as C#, C++, and Java, while leveraging popular web frameworks like Blazor, React, Angular, and Vue. Photino employs the operating system's built-in browser controls—Chromium for Windows, WKWebView for macOS, and WebKitGTK+ for Linux—resulting in smaller application sizes and reduced memory usage compared to Electron. The framework is particularly beneficial for .NET developers, as it integrates seamlessly with .NET backends and supports Blazor for those who prefer not to use JavaScript or TypeScript. Although still in early development and lacking some features found in Electron, Photino is open to contributions from the community to enhance its functionality. Future improvements planned for Photino include native menus, application icons, in-app updates, and support for iOS and Android. The project is maintained by CODE Magazine and encourages community involvement through GitHub.

- Photino is a lightweight, open-source framework for cross-platform desktop apps.

- It allows the use of various programming languages and web frameworks.

- Applications built with Photino are smaller and use less memory than those built with Electron.

- The framework is still in development and invites community contributions.

- Future enhancements include native menus, application icons, and mobile support.

Related

Photoroom (YC S20) Is Hiring Rust Developers in Paris (X-Platform, Wgpu, WASM)

Photoroom (YC S20) Is Hiring Rust Developers in Paris (X-Platform, Wgpu, WASM)

Photoroom, a Paris-based AI photo editor, seeks a Senior Rust Engineer to enhance cross-platform libraries for Android, iOS, and Web apps. Remote work in Europe with occasional Paris visits. Role involves Rust, WebAssembly, WebGPU development impacting millions. Ideal candidate has 3+ years Rust experience, C/C++ familiarity, and Swift/Kotlin knowledge. Bonus for OpenGL, Metal, WebGPU, WebAssembly, image editing experience. Hiring process includes interviews and home assignment review. Photoroom prioritizes diversity, equity, inclusion, flexible hours, and supportive environment.

Pixi – reproducible, scientific software workflows

Pixi – reproducible, scientific software workflows

Pixi is a new package manager for scientific software, focusing on collaboration, reproducibility, and performance. It offers lockfiles, streamlined workflows, GPU optimization, and integration with tools like Jupyter notebooks. Pixi aims to enhance scientific workflows by managing dependencies efficiently.

Microjs

Microjs

Microjs showcases lightweight JavaScript micro-frameworks and libraries, emphasizing efficiency and portability. It allows developers to find and contribute to compact tools, promoting smaller, specialized libraries over larger frameworks.

Pixi – rust-based package manager for reproducible scientific workflows

Pixi – rust-based package manager for reproducible scientific workflows

Pixi is a new package manager for scientific software, enhancing reproducibility and simplifying workflows. It features lockfiles, streamlined builds, and compatibility with Git and Jupyter, optimizing research efficiency.

Show HN: A framework for web component frameworks

Show HN: A framework for web component frameworks

Ornament is a lightweight toolkit for building web components, offering a TypeScript-friendly API in version 2.0.0. It simplifies custom element creation and integrates with libraries like Preact.

Link Icon 9 comments
By @Blahah - 8 months
I'd really like to see it compared to Tauri [0] which is the established leader in this space.

0: https://tauri.app

By @anaisbetts - 8 months
I cannot describe how Bad an idea it is to try to rely on the OS-provided web browser. We chose Electron at Slack, partly because of the numerous unfixable bugs with Slack for Mac for people on downlevel operating systems, and that was just on macOS! Telling people, "You need to install a new OS" or even in the case of macOS on old devices, "You need to buy a new computer", in response to a user writing in with a bug in your app is a real uncomfortable conversation to have in Support

Tauri even themselves are building their own embedded browser (based on Servo) because they too realize that using "whatever the OS happens to have" is fundamentally not Workable as a platform. This idea Just Does Not Work for production apps with Real amounts of users

By @croes - 8 months
Is it really cross platform if it uses the OS render engine?

Aren't there still differences between Chromium and Webkit.

And what if a breaking change in the WebView2 is deployed per update?

Isn't that the advantage of Electron that you have total control over used render engine version?

By @elashri - 8 months
On a somewhat off-topic point, the photino, which is the proposed superpartner of the photon, will not be massless. If it exists, we know for sure that it will have a mass significantly larger than that of the electron. For starters, we would have already discovered it if it had such a low mass. Therefore, it is incorrect from a particle physics perspective to consider the photino lighter than an electron.

And yes, I know this is why people don't like talking to physicists. Good luck with the project anyway :)

By @butz - 8 months
Is you already are writing .NET application, why not use UI library they provide and actually build a desktop application? You can even do pretty good optimizations when packaging such .NET app to reduce its size and even include runtime, to remove requirement for external dependencies.
By @ano-ther - 9 months
Looks promising. Does anyone have experience with it, or their backers https://codemag.com/ ?
By @butz - 8 months
"on Linux it uses WebKitGTK+ 2" - is this counted into download size comparison, or conveniently left out?
By @VyseofArcadia - 8 months
I just want to say, I really miss for-real native desktop apps. As an old-school desktop app developer, everything about web dev feels awkward and unnatural to me, and I'm not too keen on the performance of the end result.

I appreciate that Photino at least is lighter in terms of install footprint and RAM use, but it is still as CPU hungry.

By @romwell - 8 months
TL;DR:

>Photino uses the OS’s built-in Chromium or WebKit-based browser control for Windows, macOS and Linux.

So, same difference. Native and lighter than light my arse, pardon my French.

It's still using a browser under the hood to render UI.