Viewing profile — mvdan
mvdan
HN member- Joined
- Fri, Jun 13, 2014, 3:53 PM UTC
- HN karma
- 184
- Public activity
- 60 items
- HN profile
- View on Hacker News ↗
About mvdan
Recent public activity
-
comment
Comment #47231216
Indeed! This blog post is also relevant: https://cue.dev/blog/guardrailing-intuition-towards-reliable...
- story
- story
-
comment
Comment #34756066
https://github.com/mvdan/sh/blob/master/syntax/canonical.sh is one small example.
-
comment
Comment #34755059
For the first two caveats, I actually agree that we could and should handle ambiguous input. It just hasn't been a priority because doing that properly would be quite a bit of work…
-
comment
Comment #34754238
gofumpt will never have formatting knobs, following gofmt's design. But if one of gofumpt's rules forbids a style which is reasonable even if it's not very popular, we might want t…
-
comment
Comment #34753558
You might be getting confused. gofmt does not warn about lacking comments, that was golint, which has since been deprecated. gofmt does not divide or re-join imports into groups, b…
-
comment
Comment #34753523
I hadn't really considered that people might want to do this. From experience reading and writing Go code for ~8 years at multiple companies, the only times I've seen leading or tr…
-
comment
Comment #34751548
It's not quite as simple as that :) I think upstreaming half of gofumpt's additions to gofmt would be reasonable, but the person who wrote and maintains gofmt is Robert Griesemer, …
-
comment
Comment #34751242
I agree that empty lines can help. I've been careful to only remove empty lines which, in my opinion, don't help when structuring the code or making it more readable. If you have e…
-
comment
Comment #23165944
I'm the author of that presentation, and I'm surprised to see the very similar content and structure, to say the least. I left a comment on the Reddit thread[0] to see if I'm missi…
- story
- story
- story
- story
- story
-
comment
Comment #21165465
It might lead to fewer allocations in complex programs, as the compiler is able to put more in the stack under some edge cases.
-
comment
Comment #21165050
Simple Go binaries do tend to be statically linked, which is where I think the confusion comes from. The most common source of dynamic linking is cgo, since CGO_ENABLED=1 is the de…
-
comment
Comment #21164896
These are the slides from a talk; I didn't spend the extra time to change the format or write down what I explained. After all, I didn't post them here, someone else did :) I perso…
-
comment
Comment #20122708
See https://github.com/golang/go/wiki/Go-Release-Cycle . We're one month into the three-month freeze, so it's unlikely that new features are going to be merged in before the tree r…
- story
- story
-
comment
Comment #17773156
If anyone wants the recording, this is the timestamp in the meetup recording before an edited version is available: https://youtu.be/RGeHsqj2RWo?t=2h16m11s I can see that the slide…
-
comment
Comment #17090477
I'm going to go on assuming that you're not being sarcastic :) As I mentioned in another comment, once Go's wasm support is shipped and stable, I hope to make the JS package smalle…
-
comment
Comment #17090467
That's a good point. I am adding more and more examples to the Go documentation these days. Ideally I'd just point the JS people at the Go docs and examples, but the translation is…