什么是糙米| 早上起来心慌是什么原因| 轻微手足口病吃什么药| 嗯哼的爸爸叫什么| 尿血是什么原因引起的| 虚恋是什么意思| 什么病必须戒酒| 血管堵塞吃什么好疏通| 下身有异味用什么药| 完美收官是什么意思| 苯佐卡因是什么药| 97年是什么生肖| 舟可是什么字| 无什么不什么| 头昏脑胀吃什么药| 什么情况下挂疼痛科| 6月30号什么星座| 5月5日什么星座| 吃什么助眠| 羊肉补什么| 兴渠是什么菜| 右眼袋跳动是什么原因| 公安局局长是什么级别| 眼睛上火吃什么药| 刀个刀个刀刀那是什么刀| 胎盘成熟度0级什么意思| 一般是什么意思| sherry是什么意思| 人间仙境是什么意思| 嗝气是什么原因| 吃什么降尿酸最快| 香蕉与什么食物相克| 十二指肠溃疡吃什么中成药| 草字头弓读什么字| 星星为什么会眨眼| 自渎是什么意思| 胃热吃什么药最有效| 肛门痛是什么原因| 护理是干什么的| 大作是什么意思| 胃炎糜烂吃什么食物好| c肽是什么意思| 属猴与什么属相最配| 排卵期是什么时候| 阴道黑是什么原因| 空调室内机漏水是什么原因| 不过如此是什么意思| 胸口隐隐作痛挂什么科| 嗜酸性肉芽肿是什么病| 悱恻是什么意思| 寅木代表什么| 十万左右买什么车好| 通马桶的工具叫什么| 11点多是什么时辰| 桑葚有什么功效和作用| 爱的反义词是什么| 血小板低会有什么症状| 氨水是什么| 2点是什么时辰| 芳心暗许什么意思| 又双叒叕念什么啥意思| 半夜醒来睡不着是什么原因| 麻小是什么意思| 碧玺是什么意思| 间质性肺病是什么意思| 世界上最坚硬的东西是什么| 发热是什么原因| 人情味是什么意思| 包可以加什么偏旁| 长智齿是什么原因引起的| 酒精过敏吃什么药| 骨皮质断裂是什么意思| g50是什么高速| 94年属于什么生肖| 急得很什么| 什么的坐着| 外交部发言人什么级别| 大肠杆菌吃什么药| 为什么土豆不能炒鸡蛋| 什么水果败火| 扁桃体发炎吃什么药好| 珊瑚粉是什么颜色| 卷发适合什么脸型| 属实是什么意思| 蜘蛛的天敌是什么动物| 前列腺增生吃什么药见效快| 有期徒刑是什么意思| 三月二十八号是什么星座| 游龙斑是什么鱼| 干你什么事| 查输卵管通不通做什么检查| 卵磷脂什么牌子好| 意犹未尽什么意思| 耳朵长痣代表什么| 什么是玄关在哪个位置| 脑供血不足有什么症状| 脱毛膏的原理是什么| 摩羯座是什么性格| 旅游带什么| 剪不断理还乱什么意思| 氢键是什么| 什么病会导致不来月经| 内科主要看什么病| 麝牛是什么动物| 梅菜扣肉的梅菜是什么菜| 麻风病是什么病| 猫可以吃什么水果| 拿东西手抖是什么原因| 阴道炎是什么引起的| 培坤丸有什么作用功效| mansory是什么车| 额头和下巴长痘痘是什么原因| 尿酸高是什么意思| 痛风不能吃什么水果| 疤痕增生是什么样子| 绿茶有什么好处| 男人喜欢什么姿势| 梦见自己找工作是什么意思| 一什么鱼塘| 父母都是b型血孩子是什么血型| 什么花香| 什么是裸分| 什么食物黄体酮含量高| 肚子疼呕吐是什么原因| 鼻尖疼是什么原因| 同房后出血是什么原因| 今天生肖冲什么| 说风就是雨什么意思| 肾积水是什么病严重吗| tc是什么| 什么中药能降血压| 为什么胃酸会分泌过多| 胆汁淤积症有什么症状| 地心引力是什么意思| 水为什么是绿色的| 立冬和冬至什么区别| 左上腹是什么器官| 排便困难是什么原因| 有什么办法可以怀孕| 心态是什么意思| 血糖看什么指标| 三文鱼长什么样| 兔子吃什么食物| 腺样体是什么| 占卜什么意思| 前列腺增生吃什么药见效快| 微商是什么意思| 舌头疼吃什么药| 五行土克什么| 阴茎不硬吃什么| 小便分叉是什么原因男| 焦虑吃什么药好| 好汉不吃眼前亏是什么意思| 碱性磷酸酶低是什么原因| 参见是什么意思| 疤痕增生挂什么科| 世界上最小的花是什么花| 一什么桌子| 粗脖子病是什么原因引起的| 心里害怕紧张恐惧是什么症状| 皴是什么意思| 鸡枞是什么东西| 凉皮用什么面粉| 拔牙后吃什么| 什么是调剂| 什么快递可以寄活物| 做梦梦见狼是什么意思| 冠状动脉钙化什么意思| 杨少华什么辈分| 1.18是什么星座| 编程是什么专业| 嘴巴起水泡是什么原因| 梦见染头发是什么意思| 火龙果什么时候开花| 天珠是什么材质| 什么叫活检| sherpa是什么面料| 孕妇缺碘吃什么补最快| 蔑视是什么意思| 低盐饮食有利于预防什么| 牙周炎用什么药最见效| 南辕北辙是什么意思| 法院是什么机关| 利郎男装是什么档次的| 孵化基地是什么意思| 天地不仁以万物为刍狗什么意思| 奔豚是什么意思| 艺五行属什么| 女人阳虚吃什么药效果最好| 阴道里面痒是什么原因| 纸包鸡什么意思| 带状疱疹什么不能吃| 药物流产最佳时间什么时候| 知我者莫若你什么意思| 甘油三酯代表什么| 熟普属于什么茶| 中暑吃什么好得快| 最大的动物是什么| sls是什么化学成分| 五险一金什么时候开始交| 盛夏是什么意思| 尿道炎吃什么消炎药| 宫外孕是什么导致的| 什么止咳最好| 心脏造影是什么意思| 蛇肉吃了有什么好处| 什么样的手相最有福气| pose是什么意思| 荔枝都有什么品种| 办理公证需要什么材料| 手抖头抖是什么病| 静候佳音是什么意思| 左肾钙化灶什么意思| 端水是什么意思| 什么病不能吃山药| 孑孓什么意思| 小孩流鼻血挂什么科| 大队书记是什么级别| 猫和狗为什么是天敌| 梦见自己结婚了是什么征兆| 孕妇喉咙痛吃什么好得最快| 补气吃什么食物| 胃泌素17是什么检查| 减肥用什么好| 婚车头车一般用什么车| 皮损是什么意思| 甘油三酯高吃什么降得快| 拉屎很臭是什么原因| 深圳为什么叫鹏城| 脑梗复查挂什么科| 总流口水是什么原因| 萎缩性胃炎吃什么好| 什么猫| hcg翻倍慢是什么原因| 什么时候做人流才是最佳时间| 八三年属什么生肖| 吃什么水果能美白| 粘米粉可以做什么好吃的| 眼睛痒吃什么药| 20点是什么时辰| 抗生素是什么药| 风湿是什么原因造成的| 自学成才是什么意思| 强悍是什么意思| 纤维增殖灶是什么意思| 9527是什么梗| 怀孕打黄体酮针有什么作用| 5月3日什么星座| 否命题和命题的否定有什么区别| 妄想症是什么意思| 经血粉红色是什么原因| 西安属于什么省| 守活寡什么意思| 梦见捡金首饰是什么意思| 阴部痒痒的是什么原因| 口字旁的字和什么有关| 外甥像舅舅有什么说法| 中国的国服是什么服装| 香兰素是什么东西| 大佐相当于中国的什么军衔| 喝酒手麻是什么原因| cga是什么意思| 胃病喝什么茶养胃| 怀孕吃什么可以快速流产| 百度
Aller au contenu principal

我是哪儿的人?罗江县人民医院车祸患者李星找家人

百度 全国人大常委会副委员长、民盟中央主席丁仲礼出席座谈会并讲话。

Electron est un framework permettant aux développeurs de construire des applications de bureau multi-plateformes pour macOS, Windows et Linux en combinant les technologies web (HTML, JavaScript, CSS) avec Node.js et code natif. Il est open-source, sous licence MIT, et gratuit pour un usage tant commercial que personnel. Dans ce document, nous expliquerons pourquoi les entreprises et les développeurs choisissent Electron.

Nous pouvons diviser les avantages d'Electron en deux questions : tout d'abord, pourquoi devriez-vous utiliser les technologies web pour construire votre application ? Alors, pourquoi choisir Electron comme framework pour le faire ?

Si vous utilisez déjà des technologies web pour votre application, vous pouvez passer directement à la section Pourquoi Electron ? ci-dessous.

Pourquoi choisir des technologies web?

Les technologies Web incluent HTML, CSS, JavaScript et WebAssembly. Il s'agit de la vitrine de l'Internet moderne. Ces technologies sont apparues comme le meilleur choix pour construire des interfaces utilisateur, aussi bien pour les applications grand public que pour les applications métier critiques. C'est vrai aussi bien pour les applications qui ont besoin de s'exécuter dans un navigateur que pour les applications de bureau qui ne sont pas accessibles depuis un navigateur. Notre affirmation audacieuse est que ce n'est pas seulement vrai pour les applications multi-plateformes qui ont besoin de s'exécuter sur plusieurs systèmes d'exploitation, mais c'est vrai dans l'ensemble.

à titre d’exemple, la NASA Mission Control est écrite avec des technologies web. Le Terminal Bloomberg, le système informatique de chaque institution financière, est écrit avec des technologies web et tourne à l'intérieur de Chromium. Elle co?te 25 000 $ par utilisateur et par année. Le kiosque de commande de McDonald's, propulsé par le plus grand détaillant alimentaire du monde, est entièrement construit avec Chromium. La capsule spatiale Dragon 2 de SpaceX utilise Chromium pour afficher son interface. Vous obtenez le point : les technologies web sont une excellente pile technologique pour construire des interfaces utilisateur.

Voici les raisons pour lesquelles nous, les responsables d'Electron, misons sur le web.

Versatilité?

Les versions modernes de HTML et CSS permettent à vos développeurs et concepteurs de s'exprimer pleinement. La vitrine du Web comprend Google Earth, Netflix, Spotify, Gmail, Facebook, Airbnb, ou GitHub. Quelle que soit l’interface dont votre application a besoin, vous serez en mesure de l’exprimer avec HTML, CSS et JavaScript.

Si vous voulez vous concentrer sur la construction d'un produit génial sans comprendre comment réaliser la vision de votre designer dans un cadre spécifique d'interface utilisateur le web est un pari s?r.

Fiabilité?

Les technologies Web sont la base la plus utilisée pour les interfaces utilisateur de la planète. Elles ont été durcies en conséquence. Les ordinateurs modernes ont été optimisés du CPU au système d'exploitation pour être bons pour exécuter des technologies Web. Les fabricants des appareils de votre utilisateur — que ce soit un téléphone Android ou le dernier MacBook — s'assureront qu'ils peuvent visiter des sites Web, lire des vidéos sur YouTube, ou afficher des e-mails. En retour, ils s'assureront également que votre application a une base stable, même si vous n'avez qu'un seul utilisateur.

Si vous voulez vous concentrer sur la construction d'un produit génial sans déboguer une bizarrerie bizarre que personne n'a trouvée auparavant, le web est un pari s?r.

Interopérabilité?

Quel que soit le fournisseur ou les données clients avec lesquels vous avez besoin d'interagir, ils auront probablement pensé à un chemin d'intégration avec le Web. Selon votre choix technologique, Intégrer une vidéo YouTube prend soit 30 secondes, soit vous oblige à embaucher une équipe dédiée au streaming et au décodage vidéo accéléré du matériel. Dans le cas de YouTube, utiliser autre chose que les joueurs fournis est en fait contraire à leurs conditions ainsi vous intégrerez probablement un cadre de navigateur avant d'implémenter votre propre décodeur de streaming vidéo.

Il n'y aura pratiquement aucune plate-forme où votre application ne pourra pas fonctionner si vous la construisez avec des technologies web. Pratiquement tous les appareils avec un écran, que ce soit un guichet automatique, un système d'information de voiture, Un téléviseur intelligent, un réfrigérateur ou une Nintendo Switch—sont fournis avec des moyens pour afficher les technologies Web. Le Web est un pari s?r si vous voulez être multi-plateforme.

Omniprésence?

Il est facile de trouver des développeurs ayant de l'expérience dans le développement des technologies web. Si vous êtes un développeur, il sera facile de trouver des réponses à vos questions sur Google, Stack Overflow, GitHub, ou une IA de votre choix. Quel que soit le problème que vous devez résoudre, il est probable que quelqu’un l’ait résolu bien avant — et que vous puissiez trouver la réponse au puzzle en ligne.

Si vous voulez vous concentrer sur la construction d'un excellent produit avec un accès large aux ressources et aux matériaux, le Web est un pari s?r.

Pourquoi choisir Electron?

Electron combine Chromium, Node.js et la capacité d'écrire du code natif personnalisé dans un seul framework pour la construction d'applications de bureau puissantes. Il y a trois raisons principales d'utiliser Electron :

Qualité d'entreprise?

Electron est fiable, sécurisé, stable et mature. C'est le premier choix pour les entreprises construisant leur produit phare. Nous avons une liste de certaines de ces entreprises sur notre page d'accueil, mais déja parmi les applications de chat, Slack, Discord, et Signal sont construits avec Electron. Parmi les applications d’IA, tant le ChatGPT d’OpenAI que le Claude d’Anthropique utilisent Electron. Visual Studio Code, Loom, Canva, Notion, Docker et d'innombrables autres développeurs de premier plan sur Electron.

Nous avons fait d'Electron une priorité de faciliter son travail et de ravir les développeurs. C'est probablement la raison principale pour laquelle Electron est devenu aussi populaire qu'aujourd'hui, mais ce qui maintient Electron en vie et prospère est que le responsable se concentre sur la stabilité d'Electron, sa sécurité, performance et capacité à répondre à des utilisations critiques pour la mission des utilisateurs finaux autant que possible. Nous construisons un Electron qui est prêt à être utilisé dans des scénarios où des bogues non corrigeables les trous de sécurité non corrigés et les pannes de toute sorte sont les pires scénarios.

Agrandissement?

Notre estimation actuelle est que la plupart des ordinateurs de bureau de la planète utilisent au moins une application Electron. Electron a grandi en priorisant les talents dans son groupe de mainteneurs, en encourageant d'excellentes pratiques d'ingénierie durables dans la gestion de la maintenance, et invitant proactivement les entreprises à parier sur Electron à contribuer directement au projet. Nous sommes un projet d'impact avec la fondation OpenJS, qui fait elle-même partie de la fondation Linux. Nous partageons nos ressources et notre expertise avec d'autres projets de fondation tels que Node.js, ESLint, Webpack - ou le noyau Linux ou Kubernetes.

Qu'est-ce que tout cela signifie pour vous, un développeur, dans la pratique ?

  • Reliable release schedule: Electron will release a new major version in lockstep with every second major Chromium release, usually on the same day as Chromium. A lot of work, both in the form of building processes and tools, but also in terms of raw invested hours every week, has to go into making that happen.
  • No dictators: Sometimes, betting on a technology also requires you to bet on a single person or company. In turn, it requires you to trust that the person or company never has a breakdown, starts fighting you directly, or does anything else drastic that’ll force you rethink your entire tech stack. Electron is maintained by a diverse set of companies (Microsoft, Slack/Salesforce, Notion, and more) and will continue to welcome more companies interested in ensuring their “seat at the decision-making table”.

Stability, security, performance?

Electron delivers the best experience on all target platforms (macOS, Windows, Linux) by bundling the latest version of Chromium, V8, and Node.js directly with the application binary. When it comes to running and rendering web content with upmost stability, security, and performance, we currently believe that stack to be “best in class”.

Why bundle anything at all?

You might wonder why we bundle Chromium’s web stack with our apps when most modern operating systems already ship a browser and some form of web view. Bundling doesn’t just increase the amount of work for Electron maintainers dramatically, it also increases the total disk size of Electron apps (most apps are >100MB). Many Electron maintainers once developed applications that did make use of embedded web views — and have since accepted the increased disk size and maintainer work as a worthy trade-off.

When using an operating system's built-in web view, you're limited by the browser version included in the oldest operating system version you need to support. We have found the following problems with this approach:

  • Stability: The modern web technology stack is complex, and as a result, you’ll sooner or later encounter bugs. If you use the operating system’s web view, your only recourse will be to ask your customers to upgrade their operating system. If no upgrade is available for that machine (because of no ability to upgrade to the latest macOS or Windows 11), you’ll have to ask them to buy a new computer. If you’re unlucky, you’re now losing a major customer because they will not upgrade their entire fleet of thousands of machines just because one team wanted to try your startup’s app. You have no recourse in this situation. Even the risk of that happening is unacceptable to the companies that employ the Electron maintainers.
  • Security: Similar to how you can fix stability bugs by releasing an app update, you can also release security fixes to your application without asking your customer to upgrade their operating system. Even if operating system providers prioritize updates to their built-in browser, we have not seen them reliably update the built-in web views with similar urgency. Bundling a web renderer gives you, the developer, control.
  • Performance: For simple HTML documents, a built-in web view will sometimes use fewer resources than an app with a bundled framework. For bigger apps, it is our experience that we can deliver better performance with the latest version of Chromium than we can with built-in web views. You might think that the built-in view can share a lot of resources with other apps and the operating system— but for security reasons, apps have to run in their own sandboxes, isolated from each other. At that point, the question is whether the OS’ web view is more performant than Chromium. Across many apps, our experience is that bundling Chromium and Node.js enables us to build better and more performant experiences.

Why bundle Chromium and Node.js?

Electron aims to enable the apps it supports to deliver the best possible user experience, followed by the best possible developer experience. Chromium is currently the best cross-platform rendering stack available. Node.js uses Chromium’s JavaScript engine V8, allowing us to combine the powers of both.

  • Native code when you want it: Thanks to Node.js’ mature native addon system, you can always write native code. There is no system API out of reach for you. Whatever macOS, Windows, or Linux feature you’ll want to integrate with —as long as you can do it in C, C++, Objective-C, Rust, or another native language, you’ll be able to do it in Electron. Again, this gives you, the developer, maximum control. With Electron, you can use web technologies without choosing only web technologies.

Developer experience?

To summarize, we aim to build an Electron that is mature, enterprise-grade, and ready for mission-critical applications. We prioritize reliability, stability, security, and performance. That said, you might also choose Electron for its developer experience:

  • Powerful ecosystem: Anything you find on npm will run inside Electron. Any resource available to you about how to work with Node.js also applies to Electron. In addition, Electron itself has a thriving ecosystem — including plenty of choices for installers, updaters, deeper operating system-integration, and more.
  • Plenty of built-in capabilities: Over the last ten years, Electron’s core has gained plenty of native capabilities that you might need to build your application. Written in C++ and Objective-C, Electron has dozens of easy-to-use APIs for deeper operating-system integration — like advanced window customization for transparent or oddly shaped widgets, receiving push notifications from the Apple Push Notification Network, or handling a custom URL protocol for your app.
  • Open source: The entire stack is open source and open to your inspection. This ensures your freedom to add any feature or fix any bug you might encounter in the future.
  • Native code when you need it: It bears repeating that Electron allows you to mix and match web technologies and C++, C, Objective-C, Rust, and other native languages. Whether it be SQLite, a whole LLM, or just the ability to call one specific native API, Electron will make it easy.

Why choose something else?

As outlined above, the web is an amazing platform for building interfaces. That doesn’t mean that we, the maintainers, would build everything with HTML and CSS. Here are some notable exceptions:

Resource-Constrained Environments and IoT: In scenarios with very limited memory or processing power (say, one megabyte of memory and 100MHz of processing power on a low-powered ARM Cortex-M), you will likely need to use a low-level language to directly talk to the display to output basic text and images. Even on slightly higher-powered single-chip devices you might want to consider an embedded UI framework. A classic example is a smart watch.

Small Disk Footprint: Zipped Electron apps are usually around 80 to 100 Megabytes. If a smaller disk footprint is a hard requirement, you’ll have to use something else.

Operating System UI Frameworks and Libraries: By allowing you to write native code, Electron can do anything a native application can do, including the use of the operating system’s UI components, like WinUI, SwiftUI, or AppKit. In practice, most Electron apps make rare use of that ability. If you want the majority of your app to be built with operating system-provided interface components, you’ll likely be better off building fully native apps for each operating system you’d like to target. It’s not that it’s impossible with Electron, it’ll just likely be an overall easier development process.

Games and Real-Time Graphics: If you're building a high-performance game or application requiring complex real-time 3D graphics, native frameworks like Unity, Unreal Engine, or DirectX/OpenGL will provide better performance and more direct access to graphics hardware. Web fans might point out caveats, like the fact that even Unreal Engine ships with Chromium — or that WebGPU and WebGL are developing rapidly and many game engines, including the ones listed here, can now output their games in a format that runs in a browser. That said, if you asked us to build the next AAA game, we’d likely use something else than just web technologies.

Embedding Lightweight Websites: Electron apps typically are mostly web apps with native code sprinkled in where useful. Processing-heavy Electron applications tend to write the UI in HTML/CSS and build the backend in Rust, C++, or another native language. If you’re planning to build a primarily native application that also wants to display a little website in a specific view, you might be better off using the OS-provided web view or something like ultralight.

百度