Erlang/Elixir Elixir 有了长足的发展啊

fsword · 2014年08月16日 · 最后由 lidashuang 回复于 2014年09月12日 · 7680 次阅读
  • mix 工具现在越来越像 elixir 的 gem、bundle ...... 了
  • 出现了类似 rubygems.org 的包管理服务 —— hex
  • OTP 风格的代码重复问题,已经有人做了 这个 项目,用宏的方式来简化
  • 甚至还出现了一个类似 railscast 的网站 —— http://elixirsips.com

@yukihiro_matz 补充

  • 类似 rack 的 plug
  • web framework - phoenix

欢迎继续补充

#4 楼 @yukihiro_matz v5 啊,看看 phoenix 的 Feature Roadmap 感觉很厉害

这个月要发 1.0 了,很期待。

Dynamo貌似也是一个 web framework

#6 楼 @taomaree 真的嘛,1.0 要出来了。。

#7 楼 @itzzq 不维护了,也不是基本 plug 的

#9 楼 @yukihiro_matz 本来 Dynamo 社区也想集成 Plug 的,但是

Plug was designed out of discussions surrounding Dynamo. We're currently waiting for some things to land in Plug that Dynamo needs before using it. Dynamo 的唯一维护者如是说

后来不知道啥原因就 in maintenance mode 了,怪可惜的。

#9 楼 @yukihiro_matz 仔细看 Elixir 语法,感觉坑还很多啊,各种不习惯,比如:

true and 11 and true 为啥会有区别,严格第一个参数为 boolean 有啥使用场景吗?

#11 楼 @small_fish__
Elixir 坑不多的 Elixir 的 and 就是 Erang 的 andalso,erlang 的文档是这样说的

8.14 Short-Circuit Expressions

Expr1 orelse Expr2
Expr1 andalso Expr2

Expressions where Expr2 is evaluated only if necessary. That is, Expr2 is evaluated only if Expr1 evaluates to false in an orelse expression, or only if Expr1 evaluates to true in an andalso expression. Returns either the value of Expr1 (that is, true or false) or the value of Expr2 (if Expr2 was evaluated).

#8 楼 @googya 根据 7 月 31 号的邮件:https://groups.google.com/forum/#!topic/elixir-lang-core/he1xOjQGijM

The timeline we are working with is:

  • Aug 2nd - v0.15.0
  • Aug 16th - v0.15.1
  • Aug 30th - v1.0.0-rc1

目前 0.15.1 早已发布,坐等 1.0

中国的 elixir 顶起来,有意思啊。

我除了在 macmini 上装上了最新版本(那个 web 框架必须要最新版的 elixir),ubuntu 和 fedora 都没找到~~~

#16 楼 @limkurn 居然开始搞 elixir!

如无意外 9 月 10 人发布 1.0 正式版

#17 楼 @wcp1231 就看了下语法~~~感觉看完又忘了

#16 楼 @limkurn 我每次 make clean test 就好了

#20 楼 @lidashuang 源码安装?我试试

#21 楼 @limkurn 我 path 设置好了

export PATH=$PATH:$HOME/bin:$HOME/bin/elixir/bin:$HOME/bin/bin

安装 Elixir 非常方便,pull 下代码,make clean test 就 ok 了,前提是你得装 erlang

#22 楼 @lidashuang erlang 安装还是有点麻烦,我目前是用 kerl,有没有其它更好的方法?

#24 楼 @fsword yum install 就好了吧

不过 release 的时候,确实有点坑,把 erl 什么的也搞进去的话,因为 erl 什么的对 libc 版本有依赖,等于是生成出来的 release 包是依赖具体发行版的。

#24 楼 @fsword 我在 linux 下也是用 kerl, mac 直接 homebrew

#26 楼 @lidashuang 为啥不用系统包?

#28 楼 @lidashuang 好吧,我装出来是啥就用啥的,我才懒得编译呢

#29 楼 @bhuztez 我也是懒的编译,没其它好选择,官方没 deb 包吧

#30 楼 @lidashuang 就用 16 呗,其实也没多大区别

#30 楼 @lidashuang 话说你这是转 Elixir 了?

#32 楼 @bhuztez 是啊,Elixir 要求 Erlang 大于 17

#33 楼 @lidashuang 好吧,竟然还这么奇葩

#27 楼 @bhuztez 系统包以前遇到过坑,具体是什么原因还不知道,反正当时是直接 make 就解决了

#33 楼 @lidashuang 没有啊,不同的 Elixir 版本对 Erlang 版本要求不同的

#11 楼 @small_fish__ and/2 操作符要求前面的参数为 boolean 类型, &&/2 没有这个限制

#33 楼 @lidashuang Elixir 0.13 之后的版本都要求 Erlang 17,前面的版本是没有要求的,主要是 Erlang 17 中增加了对 map的支持

需要 登录 后方可回复, 如果你还没有账号请 注册新账号