Live data from Hacker News

GoPlus – The Go+ language for data science

github.com

11–20 of 64 posts

Re: GoPlus – The Go+ language for data science

#11
post #4

I'm not a Go user, but is the important idea here that it can be run from a scriptingish environment like Jupyter or something?

It's significant syntactic sugar that brings it closer to Python, but no notebook support from what I can see.

Do any notebooks support a compiled language?

Re: GoPlus – The Go+ language for data science

#14
post #12

This is very cool! I wonder what the chances of this being pulled into Go proper is, and whether the lack of cgo is an intractable issue, which would rule it out entirely.

The error handing is similar enough to a go proposal that was rejected: https://github.com/qiniu/goplus/wiki/Error-Handling

    foo()? // for goplus
    try(foo()) // the go proposal
https://github.com/golang/go/issues/32437

Re: GoPlus – The Go+ language for data science

#15

IMHO these conveniences should just be in the language. List comprehensions, dictionary comprehensions, and short-hand for literals are the kind of syntactic sugar that have almost no downsides, save you some RSI, and make code more readable. I'm surprised comprehensions in particular haven't spread to more modern languages.

It doesn't really help that the Go developers are stuck in the early 80's still.

I hope this succeeds and forces some changes.

Re: GoPlus – The Go+ language for data science

#17
I love the idea of main-less Go scripts for times where you just want to do something simple, fast.

Neugram [1] aimed to make Go a better scripting tool, but unfortunately it seems the project is dead. Although Go+ says its focus is on data science, I think it could fill this niche too.

By the way: does Go+ have shebang support?

1: https://github.com/neugram/ng

Re: GoPlus – The Go+ language for data science

#19

IMHO these conveniences should just be in the language. List comprehensions, dictionary comprehensions, and short-hand for literals are the kind of syntactic sugar that have almost no downsides, save you some RSI, and make code more readable. I'm surprised comprehensions in particular haven't spread to more modern languages.

> I'm surprised comprehensions in particular haven't spread to more modern languages.

Comprehensions become unreadable quite quickly - even simple ones have to be read inside-out, and complex (especially nested) ones are much worse.

Most modern languages seem to prefer functional-style methods like `map`, `filter` etc, which are more readable in all but the simplest cases.

Re: GoPlus – The Go+ language for data science

#20

I love the idea of main-less Go scripts for times where you just want to do something simple, fast. Neugram [1] aimed to make Go a better scripting tool, but unfortunately it seems the project is dead. Although Go+ says its focus is on data science, I think it could fill this niche too. By the way: does Go+ have shebang support? 1: https://github.com/neugram/ng

[deleted]
Post reply on HN