HackerTrans
TopNewTrendsCommentsPastAskShowJobs

AtroxDev

no profile record

Submissions

Protovalidate Is Now v1.0

buf.build
1 points·by AtroxDev·10 maanden geleden·0 comments

Cloudflare AI Gateway now gives you access to your favorite AI models

blog.cloudflare.com
3 points·by AtroxDev·11 maanden geleden·0 comments

Was Async Fn a Mistake?

seanmonstar.com
5 points·by AtroxDev·3 jaar geleden·0 comments

What I'd like to see in Go 2.0

sethvargo.com
215 points·by AtroxDev·4 jaar geleden·219 comments

What I'd like to see in Go 2.0

sethvargo.com
3 points·by AtroxDev·4 jaar geleden·0 comments

comments

AtroxDev
·vorig jaar·discuss
Really like your UI! Built something similar for myself (also as an replacement for hckrnews.com): https://hnhub.dev/
AtroxDev
·4 jaar geleden·discuss
Totally agree with you. I don’t really need more features (maybe +2 page rules?) but having a way to give back without paying per site would be awesome.
AtroxDev
·4 jaar geleden·discuss
Can recommend kopia as well. It is the one that I settled with after trying out pretty much all the other open source solutions (at the time).

Works great across all my devices (win, mac, linux).
AtroxDev
·4 jaar geleden·discuss
I found the official API quite a pain to work with while building myself an alternative "hn ui"[0]. I mostly switched over to using the Algolia API[1], which is a lot more "fun" to work with. I can only recommend checking that one out as well.

[0]: https://hnhub.dev/

[1]: https://hn.algolia.com/api/
AtroxDev
·4 jaar geleden·discuss
From Rob Pike on reddit regarding this post[0]:

The and and or functions in the template packages do short-circuit, so he's got one thing already. It was a relatively recent change, but it's there.

Non-deterministic select is a critical detail of its design. If you depend on a deterministic order of completion of tasks, you're going to have problems. Now there are cases where determinism might be what you want, but they are peculiar. And given Go's general approach to doing things only one way, you get non-determinism.

A shorthand syntax for trial communication existed. We took it out long ago. Again, you only need one way to do things, and again, it's a rare thing to need. Not worth special syntax.

Some of the other things mentioned may be worth thinking about, and some of them have already (a logging interface for instance), and some we just got wrong (range). But overall this seems like a list of things driven by a particular way of working that is not universal and discounts the cost of creating consensus around the right solutions to some of these problems.

Which is not to discount the author's concerns. This is a thoughtful post.

0: https://old.reddit.com/r/golang/comments/s58ico/what_id_like...
AtroxDev
·5 jaar geleden·discuss
That's when you can be more precise if you want: `[year padding:zero repr:full base:calendar sign:automatic]`. The format is also checked on compile time.
AtroxDev
·5 jaar geleden·discuss
I agree. I really like how the `time` crate[0] in the rust world handles this[1].

with your example:

> format_description!("[year]/[month]/[day]")

0: https://crates.io/crates/time

1: https://time-rs.github.io/book/api/format-description.html
AtroxDev
·6 jaar geleden·discuss
The regions are listed in the docs: https://fly.io/docs/regions/#discovering-your-applications-r...