2019年

Huawei EMUI officially issued an article saying that the Ark compiler is ready for open source, "August 31 show you the code!"

On April 11 this year, Huawei's consumer business CEO Yu Chengdong announced that Huawei officially released the Huawei Ark compiler. This compiler can improve the compilation efficiency of Android applications, from the original interpretation and execution to the full-process machine code efficient running program.

95277-y8qanirhbf.png

Huawei's Ark compiler as a new Android application compiler can significantly improve the speed of mobile phones. According to Huawei's official data, the Ark compiler can improve system fluency by 24%, improve system response by 44%, and improve 60% of the three-party application operation fluency.

 
According to Huawei's official introduction, the Ark compiler is the first static compiler to completely replace the language virtual machine, and does not require an interpreter at all. A compiler that takes into account Java development efficiency and C language runtime efficiency. Compared to the existing compilation mechanism:

  1. The Ark compiler is a static compilation method. In the existing Android system, running an application first starts the virtual machine, then reads the application code and interprets the execution one by one. It will occupy more processing resources and affect the efficiency of program execution. Of course, there are also early or runtime compilation techniques, such as AOT or JIT, that convert some of the programs into machine code and execute them directly on the CPU. However, it is still not possible to do 100% to get rid of virtual machine execution, which is the key to the current Android camp is not as good as the IOS camp.
  2. The static compilation mode of Huawei Ark compiler can directly translate the dynamic features in the language into machine code. After the application is installed, the mobile phone can run the program at full speed, completely eliminating the drawbacks of the virtual machine and bringing about great improvement in efficiency.

 
3, the Ark compiler is a compiler deployed in the development environment, and the existing compilation process, mainly occurs on the mobile phone, bringing additional resource consumption.

adress:

https://code.opensource.huaweicloud.com/home

OpenArkCompiler adress

https://code.opensource.huaweicloud.com/HarmonyOS/OpenArkCompiler/home

华为 EMUI 官方发文称,方舟编译器开源准备就绪,“8 月 31 日 show you the code!”

  今年 4 月 11 日,华为消费者业务 CEO 余承东宣布,华为正式发布华为方舟编译器,这一编译器能改善安卓应用编译效率,从原先的边解释边执行转变为全程机器码高效运行程序。
80549-3s621fmjsdr.png

  华为方舟编译器作为一款全新的安卓应用编译器能显著提高手机的运行速度,根据华为官方数据,方舟编译器能够提升 24% 的系统操作流畅度,提升 44% 的系统响应能力,还能提升 60% 的三方应用操作流畅度。

  华为官方介绍,方舟编译器是首家完全替代语言虚拟机的静态编译器,完全不需要解释器。兼顾 Java 开发效率和C语言运行效率的编译器。相比现有的编译机制:

  1、方舟编译器是一种静态的编译方式,而现有的安卓系统,运行一个应用程序首先启动虚拟机,然后读入应用程序代码,逐条解释执行。会占用较多的处理资源,影响程序执行的效率。当然,也有包括 AOT 或 JIT 等提前或运行时的编译技术,把部分程序转换成机器码直接在 CPU 上执行。但是,仍旧无法做到 100% 做到摆脱虚拟机的执行,这也是当前安卓阵营不如 IOS 阵营的关键。

  2、华为方舟编译器的静态编译方式可将语言里的动态特性直接翻译成机器码,手机安装应用程序后可全速运行程序,彻底消除虚拟机的弊病,带来效率上的极大提升。

  3、方舟编译器是在开发环境部署的编译器,而现有编译过程,主要发生在手机上,带来额外的资源消耗。

《Android Studio 3.5 Beta 现已发布》
https://android-developers.googleblog.com/2019/05/android-studio-35-beta.html
Android Studio 版本说明
https://developer.android.google.cn/studio/releases#3-5-0

69549-rz8r08s8bk.png

自动推荐内存设置

在 Android Studio 3.5 中,IDE 会识别出一个应用项目在 RAM 容量更高的机器上何时需要更多的 RAM,并在通知开发者增加内存堆大小;或者您也可以在 Appearance & Behavior → Memory Settings 下自行调整设置。

用户界面冻结

在 Project Marble 计划开发期间,我们在产品分析数据中发现 IDE 中的 XML 代码编辑速度明显较慢。我们基于这个数据点优化了 XML 输入,使得 Android Studio 3.5 的性能表现有了极大的提升。从以下两张图中您可以发现,得益于输入延迟的改进,使用 XML 编辑数据绑定表达式的速度明显加快了。

构建速度

为了提高 Android Studio 3.5 的构建速度,我们采取了许多措施,其中最为重要的一项变更是为顶级注释处理器添加增量构建支持,这些处理器包括 Glide、AndroidX data binding、Dagger、Realm 和 Kotlin (KAPT)。增量支持能够显著提高构建速度。更多内容,请阅读《在 Android Studio 中加快构建速度》。

顶级注释处理器
https://developer.android.google.cn/studio/build/optimize-your-build.html#annotation_processors

磁盘 I/O 文件访问速度

Android Studio 的许多用户都在使用微软旗下的 Windows 系统。我们发现与其他平台相比,Windows 的磁盘 I/O 文件访问耗时明显更久。深度分析数据后,我们发现在一些杀毒程序在默认设置下,并未将 Android Studio 的构建输出文件夹 (build output folder) 排除在扫描范围之外。在 Android Studio 3.5 中,一旦系统监测到这个情况,Studio 将通过弹窗引导您进行最优设置。

系统健康

内存设置
内存使用报告
减少异常
用户界面冻结
构建速度
IDE 速度
Lint 代码分析
I/O 文件访问
模拟器 CPU 使用

特性优化

Apply Changes
Gradle 同步
项目更新
布局编辑器
数据绑定
应用部署
C++ 改进
Intellij 2019 平台升级
动态特性支持之条件交付
模拟器对可折叠设备及 Google Pixel 设备的支持
Chrome OS 支持

请前往下载页面,获取 Android Studio 3.5。如果您当前正在使用旧版本的 Android Studio,请直接进行升级操作即可。
下载页面
https://developer.android.google.cn/studio

如需使用上述 Android 模拟器特性,请确保您正在运行通过 Android Studio SDK 管理器下载的 Android 模拟器 v29.1.9 或更高版本。

备案服务号可以将需要备案的网站与搭建该网站的云服务器关联起来。在阿里云备案平台申请备案时,每个网站都需要一个备案服务号。备案服务号申请参考:备案服务号申请与说明

78101-twpb8r68p7.png

注意事项
仅指定类型的阿里云服务器可提供备案服务号,用于备案申请。支持提供备案服务号的服务器类型及可提供的备案服务号数量见支持备案的云服务及备案网站数量表格。
如果您购买服务器的账号与申请备案的账号为同一个阿里云账号,您可在申请备案过程中直接选择您需要进行备案的服务器,无需手动申请备案服务号。直接选择云服务器或手动申请备案服务号进行备案,每台服务器可备案的网站数量不变。
如果您购买服务器的账号与申请备案的账号不是同一个阿里云账号,您在申请备案前,建议先使用购买服务器的账号登录阿里云控制台,参考 操作步骤章节申请完成备案服务号,用于后续申请备案过程中填写。
成功备案一个网站需使用一个服务器的备案服务号,此备案服务号即为已使用的状态,无法再给其他网站备案使用。如果后续网站注销或备案取消接入,此备案服务号还是处于已使用的状态,无法用于其他网站的备案。

https://help.aliyun.com/knowledge_detail/64289.html?spm=a3c00.7621333.245543.1.458eEBnEEBnE7Q

注意点:

域名持有者信息与备案主体信息保持一致,包括:姓名、证件类型、证件号码。
域名必须已完成实名认证。
域名需在有效期内。

Gitea - Git with a cup of teaA painless self-hosted Git service.Gitea 是一个开源社区驱动的轻量级代码托管解决方案,后端采用 Go 编写,采用 MIT 许可证.

开源化
所有代码均在 GitHub! 加入我们让 Gitea 更好,你可以做到!

易安装
直接 从二进制安装。 或者使用 Docker, Vagrant, 和 安装包.

跨平台
Gitea 可以运行在任何 Go 能够编译的平台:Windows, macOS, Linux, ARM 等等,选择你喜欢的即可!

轻量级
Gitea 拥有很低的系统需求,即使Raspberry Pi也可运行,节约机器资源!

官方地址:https://gitea.io/zh-cn/

功能特性
支持活动时间线
支持 SSH 以及 HTTP/HTTPS 协议
支持 SMTP、LDAP 和反向代理的用户认证
支持反向代理子路径
支持用户、组织和仓库管理系统
支持添加和删除仓库协作者
支持仓库和组织级别 Web 钩子(包括 Slack 集成)
支持仓库 Git 钩子和部署密钥
支持仓库工单(Issue)、合并请求(Pull Request)以及 Wiki
支持迁移和镜像仓库以及它的 Wiki
支持在线编辑仓库文件和 Wiki
支持自定义源的 Gravatar 和 Federated Avatar
支持邮件服务
支持后台管理面板
支持 MySQL、PostgreSQL、SQLite3, MSSQL 和 TiDB(实验性支持) 数据库
支持多语言本地化(21 种语言)
系统要求
最低的系统硬件要求为一个廉价的树莓派
如果用于团队项目,建议使用 2 核 CPU 及 1GB 内存

免责声明
本博客部分内容来自于互联网,不代表作者的观点和立场,如若侵犯到您的权益,请联系[email protected]。我们会在24小时内进行删除。