Better HN
topnewbestaskshowjobs
Log inSign up

nulltype

738 karma · joined Oct 15, 2013 (13y ago) · 478 submissions

Submissions

comment 11y ago · link · parent

OSv seems like the much more practical alternative. That being said I suspect we will just be using more and more stripped down linuxes and containers for quite some time.

comment 11y ago · link · parent

It was a really good comment, I assume there are just a lot of haters around these days.

comment 11y ago · link · parent

httpie is the last curl cheatsheet you'll ever need

comment 11y ago · link · parent

For anyone interested in just programming, he has a great talk here: https://www.youtube.com/watch?v=JjDsP5n2kSM about "how to program independent games". Much of the advice seems to apply to other programming projects too.

comment 11y ago · link · parent

Sounds like Windows and PS4 will be released on that date.

comment 11y ago · link · parent

Could you elaborate how the single repo model causes that thing you said in the last sentence?

comment 11y ago · link · parent

It seems bad but the alternative (wait forever for groups that don't understand the change and may not even exist anymore to update their code) seems worse.

comment 11y ago · link · parent

This is a pretty informative post about optimizing custom python code to do some image manipulations, but if you just want to make images like in the post, a service like Imgix could do a pretty good job and would work with App Engine, no matter which language you choose.

I spent 5 minutes with the imgix sandbox and made this, which is pretty close to the samples (I didn't have the correct font or a white colored logo):

https://sandbox.imgix.com/view?url=https%3A%2F%2Fassets.imgi...

comment 11y ago · link · parent

The App Engine sandbox is not a good feature of app engine and is removed in the new Managed VM version (naturally in perpetual beta).

I've seen people spend a lot of time trying to avoid "using the cloud" and end up wasting a lot of money and time when they could have just used some AWS services and been done with it.

comment 11y ago · link · parent

It also doesn't really make much sense. The Go Language Memory Model page is about memory synchronization, not memory management. This article is about memory management, not low-level details of when writes and reads are visible across coroutine boundaries.

comment 11y ago · link · parent

If you think that's bad you should have seen the resistive ones.

comment 11y ago · link · parent

Ah thanks, that confirms my theory of why the location is required to parse time zone names like PST.

Offsets are probably going to be fine for recorded timestamps, if all you need is the absolute time that the timestamp represents. But yeah, timezones make things so complicated that there is no one true solution I guess.

comment 11y ago · link · parent

You might just want to use the tz info database directly.

comment 11y ago · link · parent

1. http://strftime.org/ is not easy to remember

2. You could format it with a placeholder for the hours, then replace the placeholder with the hours you want. Oddly this is only a problem for 24 hour time, 12 hour time lets you drop the leading zero.

comment 11y ago · link · parent

So I guess you're saying that microservices are pointless, the real problem is tight coupling?

comment 11y ago · link · parent

Perfect is the enemy of good I guess. If I'm building a product now, I want a library that works well now and never breaks when I upgrade to the latest version. If someone gets a great idea for a better library, make it a separate library. So backwards compatibility is definitely a feature I want.

comment 11y ago · link · parent

StableLib https://stablelib.com/ seems to be taking an interesting approach to libraries. Go guarantees backwards compatibility and it's awesome for developers. Why shouldn't libraries have the same guarantees?

The standard library is pretty nice, but one of the reasons for that is that it is a well tested well supported backwards compatible library. It would be nice if there were more of those.

comment 11y ago · link · parent

So you're saying he's some sort of double agent.

comment 11y ago · link · parent

Yeah I'm pretty skeptical of the benefits. It seems like better isolation within your monolithic application solves a lot of these issues, no need for a network socket.

If you can't isolate things well enough for some reason, maybe it makes sense to have separate services (maybe run them all on the same machine, deployed at the same time and talk over a local socket?), but even then I suspect you just need normalservices not microservices.

comment 11y ago · link · parent

Yeah, I don't get why they require a location.

On the other hand, -0700 isn't much longer than PST and parses directly.

comment 11y ago · link · parent

Sorry I meant in my local environment.

It's clear that the execution varies, as Parse(), unlike ParseInLocation() depends on the local environment, and play.golang.org probably uses some UTC locale.

comment 11y ago · link · parent

You could use the zero value (t.IsZero()) for that if you wanted to. That might be more confusing than a boolean flag though.

comment 11y ago · link · parent

I find it easier to think of times in UTC rather than local timezones. In UTC (and in reality), those times will always be the same number of hours distance from each other.

If you format it in different timezones (PDT and PST) then yeah, the formatted times will be at different hours of the day.

comment 11y ago · link · parent

Looks like you could do this: http://play.golang.org/p/Lq3xv6f-PI

comment 11y ago · link · parent

This works correctly if your locale includes the PST timezone (works fine on my computer). They should probably have a better example though.

comment 11y ago · link · parent

I wasn't able to reproduce this issue, time.Parse(time.RFC3339Nano, "2015-09-10T06:31:39.442Z") seems to work correctly as long as the number of digits between "." and "Z" is 0-9

comment 11y ago · link · parent

If you use time zones without offsets (just the name like PST instead of -0700) then you have to parse the time in a specific location http://play.golang.org/p/JzKAq09NtE

I can only assume that the time zone name alone is insufficient to resolve ambiguous times.

comment 11y ago · link · parent

Do you have any examples of annoying to parse time formats?

comment 11y ago · link · parent

It might be easier if you use curl.

curl -I https://www.reddit.com HTTP/1.1 200 OK Server: cloudflare-nginx

1
678
16