Better HN
topnewbestaskshowjobs
Log inSign up

anonfunction

2,245 karma · joined Mar 15, 2013 (13y ago) · 938 submissions

Surfacing latent bias in AI models at LatentEvals.com

https://github.com/montanaflynn

Submissions

comment 11y ago · link · parent

Did you create another API doc design? Are there plans to support the other specs like Swagger or RAML?

comment 11y ago · link · parent

Chartboost does, along with their twenty foot t-Rex

comment 11y ago · link · parent

This is exactly what I was hoping for.

I'll go with your setup because it's pretty much exactly what I had in mind and similar to my previous setup besides the mechanical keyboard and headphones.

Thanks for the very detailed help and providing links!

484.

Ask HN: What's your ideal development setup?

2 points · by anonfunction · 11y ago · 4 comments

comment 11y ago · link · parent

How long has he been in the team? If he's been with you longer than six months then I would offer a nice severance package.

Just tell him the truth, it's not that his work is terrible, but you need amazing. Let him know he'll have a great reference if needed and you're still his friend.

comment 11y ago · link · parent

I'd love to have some sort of spec to implement this in Go. I'll just go by the source but I love the simplicity compared to the standard Linux commands.

comment 11y ago · link · parent

In the demo I started typing United States and it was showing a bunch of other countries above United States.

comment 11y ago · link · parent

Umlauts are the two dots above a letter, quite common in German I believe.

comment 11y ago · link · parent

I use gometalinter which runs it through a whole suite of linters.

comment 11y ago · link · parent

The scroll-jacking on that site is extremely frustrating.

comment 11y ago · link · parent

I really love the developer command line in recent versions of Firefox. Shift + f2 brings it up.

comment 11y ago · link · parent

Any plans to open source the code?

comment 11y ago · link · parent

GitHub pages is free.

comment 11y ago · link · parent

I've missed the screenshot tools, preview and keystrokes I've committed to muscle memory.

comment 11y ago · link · parent

Thanks for your interest!

I think the biggest thing to do is finalize the public API and release v1.0.0. I started with only functions but have since added types, so I'd like to figure out if I should support both or stick to one or the other. I have a feeling I could use an Interface to make stats work for both []float64 and []int but I'm not sure about that.

Another thing I'd like to do is add more test suites, I know they are out there for more mature statistics packages in other languages that could be ported to Go.

Speaking of mature packages, I think the Gnu GSL Statistics[1] could be a good roadmap for future functionality and API design decisions.

1. http://www.gnu.org/software/gsl/manual/html_node/Statistics....

comment 11y ago · link · parent

Thanks a lot, it means a bunch to me :D

comment 11y ago · link · parent

Stats also works fine with pure []float64 data. The types allow for a very clean API for working with data and statistics. You can compare using functions[1] or methods[2] in /examples.

I started with only []float64 but wanted to allow stuff like this:

    func getData() []float64 {
    	// Do stuff to get the data and 
    	// store it in var data []float64
    	return data
    }

    var d Float64Data = getData()
    fmt.Println(d.Max())
1. https://github.com/montanaflynn/stats/blob/master/examples/m...

2. https://github.com/montanaflynn/stats/blob/master/examples/m...

comment 11y ago · link · parent

You are correct, it's been fixed with this commit[1]. My excuse is it was late when I added those output comments.

1. https://github.com/montanaflynn/stats/commit/a3efee7551d14a9...

comment 11y ago · link · parent

As I was originally answering a question regarding whether it was normal to return errors or raise exceptions, and because I've read Dave Cheney and Rob Pike's blog posts explicitly stating Go does not have exceptions I replied as such.

However, after doing some research I learned that in addition to Panic() there's also Recover()[1], so I'll concede that there is similarity between panic/recover and throw/catch. Prior to my learning about Recover() I was under the assumption that Panic was just used to print a message and close a program with a non-zero status.

1. https://github.com/golang/go/wiki/PanicAndRecover

comment 11y ago · link · parent

Rob Pike, one of the three creators of Golang, disagrees with you. In his blog post less is exponentially more[1] he shares a list of significant simplifications in Go over C and C++ which includes:

> no exceptions

1. http://commandcenter.blogspot.pt/2012/06/less-is-exponential...

comment 11y ago · link · parent

The coverage is based on the built in go tooling, which supports line or function based analysis. In addition it can start a webserver where you can browse coverage by file with color output.

    # Generate coverage data
    go test -coverprofile=coverage.out
    
    # View coverage by function
    go tool cover -func="coverage.out"
    
    # View coverage line by line
    go tool cover -html="coverage.out"

comment 11y ago · link · parent

Thanks! Go doesn't have exceptions and it is idiomatic[1] to return the error type. Dave Cheney has a really great blog post[2] which he describes why go does away with exceptions. The Golang wiki on GitHub has a great section[3] on errors as well.

1. https://gobyexample.com/errors

2. http://dave.cheney.net/2012/01/18/why-go-gets-exceptions-rig...

3. https://github.com/golang/go/wiki/Errors

comment 11y ago · link · parent

Hey Hackers, this is my first full-featured Golang package. I took a lot of care to ensure it was well tested and provided a lot of common functions that I felt were missing from the standard library. In addition it has a lot of other statistics functionality like regressions, outliers, correlation and more.

504.

Show HN: Golang statistics package with 100% code coverage(github.com ↗)

40 points · by anonfunction · 11y ago · 22 comments

comment 11y ago · link · parent

Reminded me of lob[1] and I think their colors / branding is too similar to your own which could be something to consider at this early stage.

How does the pricing compare to traditional printers? I think a better pricing user experience could go a long way to converting users into customers. Something like choose the product and a slider for quantity that shows the cost, discount and comparison to competitors would be a huge improvement. Tables also have their place so they should be accessible.

When's the API going to go public? I'd be interested to see how it's designed.

506.

Go Bootcamp – Everything you need to know to get started with Go(golangbootcamp.com ↗)

1 points · by anonfunction · 11y ago · discuss

507.

Toy Spelling Corrector Written in Golang(github.com ↗)

1 points · by anonfunction · 11y ago · discuss

508.

ES6 Proxies in Depth(ponyfoo.com ↗)

2 points · by anonfunction · 11y ago · discuss

509.

Show HN: UrbanDict – Urban Dictionary from the command line(github.com ↗)

3 points · by anonfunction · 11y ago · discuss

comment 11y ago · link · parent

Is this true for all products or just phone and tablets? I was actually intrigued by the echo and dash, even if I think they should be open and not tied to one company or use.
1
161718
32