News for hackers. Stuff that matters.
Re:Elvish – An experimental Unix shell in Go by chrissnell on Saturday July 26, 2014 @04:47PM (#8090747)
Hmmm...it's not building for me:

  $ go get github.com/xiaq/elvish
  # github.com/xiaq/elvish/edit/tty
  dev/go/src/github.com/xiaq/elvish/edit/tty/termios.go:20:   undefined: syscall.TCGETS
  dev/go/src/github.com/xiaq/elvish/edit/tty/termios.go:24: undefined: syscall.TCSETS
  dev/go/src/github.com/xiaq/elvish/edit/tty/termios.go:49:   cannot use &term.Lflag (type *uint64) as type *uint32 in   argument to setFlag
  dev/go/src/github.com/xiaq/elvish/edit/tty/termios.go:53:   cannot use &term.Lflag (type *uint64) as type *uint32 in   argument to setFlag
  # github.com/xiaq/elvish/sys
  dev/go/src/github.com/xiaq/elvish/sys/select.go:66: not   enough arguments to return
I opened up an issue for you: https://github.com/xiaq/elvish/issues/16
Re:Elvish – An experimental Unix shell in Go by bobbyi_settv on Saturday July 26, 2014 @04:54PM (#8090767)
I think this is because you are on an older version of Go. Try it with Go 1.3
Re:Elvish – An experimental Unix shell in Go by chrissnell on Saturday July 26, 2014 @04:58PM (#8090777)
I am using Go 1.3.

  $ go version
  go version go1.3 darwin/amd64
Re:Elvish – An experimental Unix shell in Go by bobbyi_settv on Saturday July 26, 2014 @05:13PM (#8090817)
It builds for me with 1.3 (linux/amd64) on Ubuntu, so I'm guessing it somehow works on Linux but not Mac.

EDIT: Specifically, the first two lines are complaining about an undefined syscall and the next two are complaining about something terminal-related being 64-bit where 32-bit is expected, so those certainly seem like plausible things that would differ across OSes.

Re:Elvish – An experimental Unix shell in Go by personZ on Saturday July 26, 2014 @06:36PM (#8091077)
The syscall package varies by platform, and TCGETS, for instance, is defined for Linux-

http://golang.org/src/pkg/syscall/types_linux.go

-but not for Darwin-

http://golang.org/src/pkg/syscall/types_darwin.go

So it seems somewhat Linux tied.