TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

ElectronCGI – A Solution to Cross-Platform GUIs for .NET Core

66 pointsby rdfiover 5 years ago

10 comments

Goz3rrover 5 years ago
The author stating that using a webserver and a full web framework for a desktop application feels wasteful seems oddly ironic when you follow up by using a browser and full framework for a desktop application.
Hawxyover 5 years ago
Steve Sanderson (creator of Blazor) is working on something similar that doesn&#x27;t use Electron:<p><a href="https:&#x2F;&#x2F;blog.stevensanderson.com&#x2F;2019&#x2F;11&#x2F;01&#x2F;exploring-lighter-alternatives-to-electron-for-hosting-a-blazor-desktop-app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.stevensanderson.com&#x2F;2019&#x2F;11&#x2F;01&#x2F;exploring-lighte...</a><p>From Blazor roadmaps a few months ago, I think the idea is that Blazor will become the recommended .NET Core cross-platform UI choice sometime after .NET 5.
评论 #21648451 未加载
评论 #21648208 未加载
评论 #21648766 未加载
评论 #21648257 未加载
评论 #21655266 未加载
injidupover 5 years ago
How about Avalonia. <a href="https:&#x2F;&#x2F;avaloniaui.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;avaloniaui.net&#x2F;</a> The assertion that there are no .NET core GUI frameworks and that resorting to the abomination that is electron is the solution is just false.<p>Or go full functional with an Elmish architecture using F#, .net core and Avalonia.
评论 #21655295 未加载
blinkingledover 5 years ago
I always wonder why Qt5+&#x2F;Qml&#x2F;QtQuick have not taken the XP desktop development by storm. QML is JS like, there&#x27;s an IDE and KDE seems to have built lot of good looking desktop software using Kirigami&#x2F;QtQuick.<p>It&#x27;s got to be better than anything Electron for sure.<p>Anyone know if .NET Core Qt bindings are a technical possibility?
评论 #21648454 未加载
评论 #21648141 未加载
评论 #21648436 未加载
评论 #21648367 未加载
评论 #21648030 未加载
评论 #21650842 未加载
评论 #21648067 未加载
thesuperbigfrogover 5 years ago
This is a great step forward, but it seems like a great deal of overhead and complexity to have a cross-platform GUI.<p>If I were creating a new cross-platform desktop application I would probably reach for Java instead. I know that&#x27;s not the popular answer, but if a .NET Core cross-platform GUI requires either using Electron or simulating a client-server setup with Node then it&#x27;s not there yet.<p>To illustrate, here is the &quot;Hello World&quot; cross-platform GUI application in Java:<p><a href="https:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;tutorial&#x2F;uiswing&#x2F;examples&#x2F;start&#x2F;HelloWorldSwingProject&#x2F;src&#x2F;start&#x2F;HelloWorldSwing.java" rel="nofollow">https:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;tutorial&#x2F;uiswing&#x2F;examples&#x2F;sta...</a><p>Setting up a connection between two processes and building async handlers is <i>way too much</i> if the application is running on one machine.
评论 #21648460 未加载
评论 #21648218 未加载
评论 #21648133 未加载
tabtabover 5 years ago
What&#x27;s really needed is a standard GUI markup language (SGML) and probably a dedicated browser, or at least a browser pluggin. Emulating desktop-like GUI&#x27;s using JavaScript and DOM has proven clunky and unreliable, largely because HTML browser makers do what they want when they want. A dedicated GUI browser wouldn&#x27;t break GUI&#x27;s because doing GUI&#x27;s is its sole purpose.<p>HTML browser makers usually don&#x27;t care if they break a particular JavaScript library by adding or tweaking features. It&#x27;s a matter of focus. The SGML browser&#x27;s only job is to do GUI&#x27;s right. But HTML browsers have 100&#x27;s of jobs. If changes harm a few of those, they become roadkill.<p>But using JavaScript as the starting point of a SGML may be the only way to gain momentum. However, the end game should be using mostly markup to manage a GUI, not JavaScript.<p>Standard and common GUI idioms and behaviors should be done in a declarative fashion using such markup, such as having a button open (make visible) a given window. While some client scripting may be needed, most of the processing could and should be done at the server if the SGML browser does most of the UI grunt-work.
评论 #21649259 未加载
评论 #21655317 未加载
评论 #21649212 未加载
pjmlpover 5 years ago
If it uses Electron it is not a solution.<p>Even Microsoft&#x27;s own React Native team bashes on Electron&#x27;s resource usage.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=IUMWFExtDSg" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=IUMWFExtDSg</a><p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=TZnajQqqKV8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=TZnajQqqKV8</a><p>About 160% more resource usage, ideally to use a computer as heating replacement.
DonnyVover 5 years ago
Thinks using a web server is too much. Then recreates http. ¯\_(ツ)_&#x2F;¯
评论 #21648559 未加载
sqldbaover 5 years ago
Calling it CGI seems like an awful awful move.
mikeceover 5 years ago
This is fantastic and long overdue.