HNHacker News
TopNewBestAskShowJobs

agnivade

253 karma · joined July 6, 2015

submissionscomments
agnivade··on Manual Memory Management in Go using jemalloc
It seems to me like your opinion about Go GC is that it is an extremely buggy and slow piece of software.

Every software has bugs. Whether those bugs are a major blocker for people to use them or not should be taken into account.

The issue that you pointed out are difficult items which need more time and thought to take care of. But they aren't something which should cause any major pain in your day-to-day usage of Go. I would say as of 1.15, GC has improved by leaps and bounds and at this point, all major warts with the system are taken care of.

But then again, I don't know in what context you are using Go. It may be the case that you have been affected by any of these bugs, and unless they get fixed, using Go is a blocker for you.

agnivade··on Go standard library benchmarks – Intel vs. M1
Nice job.

A better way might have been to run the Go1 benchmarks instead. That contains a pre-selected set of benchmarks that tests a variety of workloads.

agnivade··on Three Months of Go from a Haskeller’s perspective (2016)
> when I approach a programming problem, I first think about the types and abstractions that will be useful; I think about statically enforcing behaviour;

That's it. A large majority of the people don't think on those terms.

Go tries to be pragmatic and hit a decent balance between productivity and language features.

agnivade··on Honda quits F1, invests in carbon-free tech instead
F1 was kinda like that once. But then accidents started to happen, things got extremely dangerous. So more and more rules had to be put.

The challenge is to keep that perfect balance between enjoyable races and keeping the drivers safe.

agnivade··on Slack Incident Resolved – Degraded service affecting multiple features
If you want to get push notifications from an in-house server, you need to have your own FCM project to host the push notifications. In that case, you need to compile the app yourself.
agnivade··on Getting Hands-on with io_uring using Go
Author here:

To add to what couchand said, there are already comparisons of io_uring with SPDK and they are pretty close. So I would expect near about the same result for DPDK too.

https://www.youtube.com/watch?v=vjudg0lCEhQ

agnivade··on Getting Hands-on with io_uring using Go
> Has anyone got any benchmarks for using io_uring in a typical network daemon, i.e. something that would generally be bound by socket I/O?

Author here. Some folks have been writing echo server implementations in io_uring and doing some benchmarks: https://github.com/CarterLi/io_uring-echo-server.

May not be your typical network daemon, but you can still look at the relative gains.

Generally speaking, io_uring is just a general-purpose programming model to interface with the kernel. Socket I/O is just one part of the story. But when combined with other things, it becomes much more powerful.

agnivade··on What developers should know about TCP
Yeah, it's so good and it's open-source !
agnivade··on What developers should know about TCP
Unrelated: does anybody know the tool used to make those diagrams ?
agnivade··on What's Coming in Go 1.14 [slides]
Yeah it is slightly misleading. The escape analysis rewrite was done in 1.13. But work is now going on to remove the old escape analysis code.
agnivade··on Next steps toward Go 2
All of these have already been discussed in the GH issue. It is all being taken into consideration. Check out https://swtch.com/try.html for a thematic grouping of the issue.
agnivade··on Current State of Python Packaging
Is pipenv not recommended any longer ?
agnivade··on Show HN: Imgsquash – My image compression website project
Sure, but sometimes things are not that easy. Have you tried using mozjpeg ? You need to download, compile and install mozjpeg. Atleast for my platform. And sometimes you need the exact set of configure flags or build flags. Still you won't use a browser tool which does it for you ?
agnivade··on Go 1.12 Released
The large binary size is mainly due to the Go runtime being packed into the binary itself. You can compile with "-ldflags -s" to make it slightly smaller. But it will almost never be comparable to Rust/Emscripten binary sizes.

OTOH, there is a new project called TinyGo (https://tinygo.org) which generates LLVM byte code from Go. This allows a subset of the Go spec, sans any GC or runtime, and generates binaries comparable to Rust/Emscripten.

agnivade··on Moving from Go to PHP Again
Not sure about that. But https://github.com/gordonklaus/ineffassign catches that.
agnivade··on Moving from Go to PHP Again
> I found it too easy to accidentally forget to check an error

Use https://github.com/kisielk/errcheck for that.

Or prefer https://staticcheck.io/ for a larger set of checks.

agnivade··on Lessons learned scaling a PostgreSQL database to 1.2bn records/month
For the large tables, what about using timestamp based table partitioning to split data into smaller units ? And then materialize each of them one by one ?

So you get to keep materialized data and a single logical table.

agnivade··on Programming: Mostly a hate story
> Oops, Docker doesn't let me just publish the modified Dockerfile. It wants me to build the image locally and THEN push to Hub.

Yes, but to create the image, you don't need to build it. Meet your new friend "docker commit".

agnivade··on Go Modules in 2019
https://github.com/gonum/gonum is that.
agnivade··on Just tell me how to use Go Modules
I mean that if it isn't set, the behavior is the same as auto. If you weren't getting "auto" behavior, then it's a bug. Please feel free to file an issue.
agnivade··on Just tell me how to use Go Modules
The default value of that environment variable is auto.

If you don't set anything, and you are inside GOPATH, module mode is disabled. If you are outside GOPATH, module mode is enabled.

I think that is the most sane behavior. And this flag is needed because modules are an experimental feature.

How else do you recommend to release experimental features ?

agnivade··on Just tell me how to use Go Modules
Can you elaborate ? Which compiler flag is needed for compilation ?
agnivade··on Nine years of Go
The tools team is still working on go/packages. It is bound to get better.

Given that modules support is still officially experimental, there are bound to be rough edges. But by 1.12, I think we will have a solid modules story.

agnivade··on Improving DataView performance in V8
Awesome ! The Go wasm js shim uses DataView to access the linear memory. Any idea in which release of Google Chrome this is going to land ?
agnivade··on Porcupine: A fast linearizability checker written in Go
Can someone ELI5 what is a linearizability checker ?
agnivade··on Go 1.11 and Beyond
Hi,

godoc maintainer here. We have a lot of UI improvements coming for 1.12.

- A TOC at the top

- A sidebar for easy scrolling

- More cross-links for easy navigation.

If hotlinking comes through, that's a major improvement in itself.

Stay tuned !

agnivade··on What else is in Go 1.11?
That is correct. Now you can clone and build Go repos anywhere.

Note that support is still experimental, so if you want stability, it is advised to remain inside GOPATH for another release. This is a good post - https://systemdump.io/posts/2018-07-22-go-modules

However, do please feel free to try it out and file bugs.

agnivade··on Go 1.11 Rc1 released
Yes, the release notes are a bit humble about it.

Specifically, optimized assembly instructions are used now in crypto code and also lot of optimizations have gone into the ARM assembler.

One example - https://gist.github.com/carlosedp/f85274ef2a9bacc773cf8ddeed....

agnivade··on Go 1.11 Rc1 released
There has been some tremendous improvements for ARM architecture. If you run some serious code on raspberry PIs, get ready to be amazed.
agnivade··on A response about dep and vgo
I think your expectations from huge open source projects are a bit too much. There are over 3500 issues open currently as of this moment, and new issues get opened every 15-20 minutes. The Go core team is like 10 people. That being said -

> - very little or no input from core team

I simply don't see this being true. Apart from OP (who is expected to comment a lot, because it is his proposal), the thread has comments from Robert Griesemer, Russ Cox, Austin Clements, Adam Langley and many others.

> - the whole process is stalled waiting for core team to participate

Again, not true. See Ian's and Russ' last comment. It is actually waiting on further information.

All that being said, instead of complaining how there is no response on a thread by the core team, maybe you can contribute by answering the questions Russ and Ian has raised, and ping others as needed.

← PreviousPage 2 of 8Next →