Kotlin 1.2 发布,实现平台间共享代码
PHP 7.2.0 正式发布,多项内容修复
Spring Security 5.0.0 发布,Spring 安全框架
Kotlin 1.2 发布,实现平台间共享代码
Kotlin 1.2 发布了。主要更新内容如下:
通用平台模板
多平台项目允许您从相同的代码库构建应用程序的多个层 - 后端,前端和 Android 应用程序。
这样的项目包含了独立于平台的代码的通用模块,以及特定平台(JVM 或 JS)的代码的特定模块,并且可以使用平台特定的库。 要从通用模块中调用特定于平台的代码,您可以指定预期的声明 - 所有平台特定模块需要提供实际实现的声明。
这意味着:一次编写,就能实现多平台编译
如前所述,开发团队也在研究一系列通用库,以便将更多的逻辑转移到通用代码中:
kotlin.test, 在Kotlin 1.2开箱即用,只要编写一次测试就能在 JVM 和 JS 下运行;
kotlinx.html 支持同构渲染 - 使用相同的代码在后端和前端渲染 HTML;
编译性能提升
编译性能提升 25%,下图显示了使用 Kotlin 构建的两个大型 JetBrains 项目的编译时间差异:
其他改进
将多个参数传递给注释的语法更简洁 (array literals);
支持顶级属性和局部变量的 lateinit 修饰符,并检查是否初始化了 lateinit 变量;
在某些情况下的投射更智能,并改进类型推断;
将含有拆分包限制的标准库的兼容性处理引入到 Java 9 中;
Compatibility of the standard library with the split package restrictions introduced in Java 9;
标准库中新的 kotlin.math 包;
详情请查看:
下载地址:
https://github.com/JetBrains/kotlin/releases/download/v1.2.0/kotlin-compiler-1.2.0.zip
https://github.com/JetBrains/kotlin/archive/v1.2.0.tar.gz
PHP 7.2.0 正式发布,多项内容修复
PHP 7.2.0 正式发布了。PHP(PHP:Hypertext Preprocessor)是一种在电脑上执行的脚本语言,主要是用途在于处理动态网页,也包含了命令列执行接口(command line interface),或者产生图形使用者接口(GUI)程式。
该版本主要还是修复 bug,改进日志如下:
BCMath: . Fixed bug #46564 (bcmod truncates fractionals). (liborm85) - CLI: . Fixed bug #74849 (Process is started as interactive shell in PhpStorm). (Anatol) . Fixed bug #74979 (Interactive shell opening instead of script execution with -f flag). (Anatol) - CLI server: . Fixed bug #60471 (Random "Invalid request (unexpected EOF)" using a router script). (SammyK) - Core: . Added ZEND_COUNT, ZEND_GET_CLASS, ZEND_GET_CALLED_CLASS, ZEND_GET_TYPE, ZEND_FUNC_NUM_ARGS, ZEND_FUNC_GET_ARGS instructions, to implement corresponding builtin functions. (Dmitry) . "Countable" interface is moved from SPL to Core. (Dmitry) . Added ZEND_IN_ARRAY instruction, implementing optimized in_array() builtin function, through hash lookup in flipped array. (Dmitry) . Removed IS_TYPE_IMMUTABLE (it's the same as COPYABLE & !REFCOUNTED). (Dmitry) . Removed the sql.safe_mode directive. (Kalle) . Removed support for Netware. (Kalle) . Renamed ReflectionClass::isIterateable() to ReflectionClass::isIterable()
完整的更新日志请点击阅读原文查看。
下载地址:
Spring Security 5.0.0 发布,Spring 安全框架
Spring Security 5.0.0 已发布。Spring Security 的前身是 Acegi Security ,是 Spring 项目组中用来提供安全认证服务的框架。
Spring Security 为基于J2EE企业应用软件提供了全面安全服务。特别是使用领先的J2EE解决方案-Spring框架开发的企业软件项目。人们使用Spring Security有很多种原因,不过通常吸引他们的是在J2EE Servlet规范或EJB规范中找不到典型企业应用场景的解决方案。
Spring Security 5.0 提供了许多新功能,并支持 Spring Framework 5.0,总共有 400 多个增强功能和 bug 修复。主页内容如下:
新特性
OAuth 2.0 登录
响应支持
@EnableWebFluxSecurity
@EnableReactiveMethodSecurity
WebFlux Testing Support
更新详情请参阅 Spring Security 更新文献:
下载地址:
https://github.com/spring-projects/spring-security/archive/5.0.0.RELEASE.zip