HNHacker News
TopNewBestAskShowJobs

arthurbrown

365 karma · joined February 3, 2012

sydney. typescript by day, ocaml at night
submissionscomments
arthurbrown··on Choose Postgres queue technology
I've used beanstalkd for personal projects previously with a similar experience to you.

For one such project, the message 'priority' feature was a life saver and a feature that is not super common in competing solutions.

arthurbrown··on Marijuana addiction: those struggling often face skepticism
Not sure why edibles are routinely disregarded in many of these discussions. They seem like such an obvious answer
arthurbrown··on The force that shapes everything around us: Parking
You're describing a train
arthurbrown··on How ayahuasca changed my perspective
Reread OP. This is not what they are trying to convey.

They are saying that taking psychedelics can provide a similar breakthrough like awakening after resolving trauma.

arthurbrown··on Buildpacks vs. Dockerfiles
https://render.com is easy to use and very promising
arthurbrown··on TypeScript vs. ReasonML
They're different concepts with different ways of being expressed in OCaml.

In this case it truly is a Product and if you want to reuse a field name you'll need to enclose that type in a module.

Row polymorphic -- "thing with a name" -- is possible through the object system which is accessed through a different syntax, and works like go interfaces in practice.

arthurbrown··on Reducing pollution from boats by switching to electric motors
It's great that they're getting reductions of this magnitude for watercraft, this should absolutely continue.

But it is damning for electric cars. The tailpipe emissions (measured in this article) that are reduced by going electric are marginal in comparison, and the other emissions are still entirely present.

arthurbrown··on Reducing pollution from boats by switching to electric motors
Electric cars don't reduce emissions from tyre and brake wear. These particles make up a huge amount of air pollution at a size small enough to cause health issues. Once they settle, they are swept into waterways and form the majority of our microplastic problem.

https://www.sciencedirect.com/science/article/pii/S135223101...

https://www.theguardian.com/environment/2018/nov/22/tyres-an...

arthurbrown··on Declined Proposal: A built-in Go error check function, “try”
What happens with this code when err isn't recoverable?

you can manage it a few ways in Elixir, struct matching is one:

  def perform(param) do
    res =
      case get_resource(param) do
        {:ok, val} -> val
        {:error, %RecoverableError{alternative_value: val}} -> val
      end

    do_more_things(res)
  end
arthurbrown··on Show HN: PugSQL, a Python Port of HugSQL
Ecto is one of the very best things about elixir from my perspective. It seems bizarre that anyone would have this great tool uniquely available to their language and want to ignore it.
arthurbrown··on Nasa Says Earth Is Greener Today Than 20 Years Ago Thanks to China, India
It's true. Australia just had a federal election, and re-elected a party running on an anti green, pro-coal energy strategy. Voting here is compulsory
arthurbrown··on Australian Government Design System
NSW design system is built on top of the DTA design system. They've done exactly what you're suggesting

https://www.digital.nsw.gov.au/digital-design-system/compone...

arthurbrown··on Eating out increases levels of phthalates in the body, study finds
You're referencing a quora post by an American about some time spent in Spain. How is this an authoritative source? The following answer specifically rails against fast food and contrasts it against "restaurants and tapas bars", implying a difference.

Sure you can use restaurant as a term to refer to a "place where food can be ordered" -- but if someone speaks the word, fast food is not what comes to mind.

arthurbrown··on The Sorrow and the Shame of the Accidental Killer
Original roadways were lobbied for and paid by cyclists.

There's no chance that humans would go back to carriages as a realistic transport method. Shouldn't we be comparing against electric bicycles and public transport networks?

https://www.theguardian.com/environment/bike-blog/2011/aug/1...

arthurbrown··on The Sorrow and the Shame of the Accidental Killer
Totally valid. And yet imagine how much more effectively emergency responders could operate if they didn't need to compete with the general public given there were better alternate transport modes.
arthurbrown··on The Sorrow and the Shame of the Accidental Killer
The amount of death we accept as a society just for the convenience of automobile travel astounds me. It's been normalised at this point, but surely at some time there was an outcry -- at least in the Netherlands they managed to make a change before it became entrenched.
arthurbrown··on A deep dive into Multicore OCaml garbage collector
The community tends to shy away from classes, but using a method for to_string accomplishes your second point in a minimal way.

  let to_string stringer : string = stringer#to_string
  val to_string : < to_string : string; .. > -> string = <fun>

I think there's also plenty of people who feel just as strongly about Reason syntax in the other direction.
arthurbrown··on The State of Go: Where we are in February 2016
Funny that you mention Jinja.

This is actually a feature that's been in Jinja forever that I've always wanted in Go's text/template

http://jinja.pocoo.org/docs/dev/templates/#whitespace-contro...

arthurbrown··on Golang on ARM
Russ Cox wrote a great comment[1] on HN about why using the Plan9 toolchain rather LLVM or even GCC was a competitive advantage for them in terms of speed to delivery, control, and iteration.

"Most importantly, it has been something we understand completely and is quite easy to adapt as needed. The standard ABIs and toolchains are for C, and the decisions made there may be completely inappropriate for languages with actual runtimes.

For example, no standard ABIs and toolchains supported segmented stacks; we had to build that, so it was going to be incompatible from day one. If step one had been "learn the GCC or LLVM toolchains well enough to add segmented stacks", I'm not sure we'd have gotten to step two."

"... the custom toolchain is one of the key reasons we've accomplished so much in so little time. I think the author doesn't fully appreciate all the reasons that C tools don't work well for languages that do so much more than C. Most other managed languages are doing JIT compilation and don't go through standard linkers either."

[1] https://news.ycombinator.com/item?id=8817990

arthurbrown··on AngularJS docs page error results in self-parody
http://i.imgur.com/PCq0sl1.png

Screencap for when it gets fixed

arthurbrown··on A minimal blog engine written in Go, compatible with Ghost themes
I've written a tiny package that does just that in a controlled way, using named returns to bubble the error out.

https://github.com/dagoof/failure

[Docs] https://godoc.org/github.com/dagoof/failure

arthurbrown··on Implementing a bignum calculator – Rob Pike [video]
Arbitrary precision is handled by https://golang.org/pkg/math/big/

He isn't implementing a bignum package, this is all about the APL interpreter.

arthurbrown··on Command-line interface description language
I think getopt provides a better middle ground between flag and docopt. Flag package syntax with short and long flag support

http://godoc.org/code.google.com/p/getopt

arthurbrown··on Copying stdin to stdout in Java
Channels in go use the exact syntax you mention (dst <- src). With this in mind, the argument order of io.Copy is consistent, as well as io.Pipe. You read from a reader - the output of the pipe, and write to a writer - the input of the pipe.
arthurbrown··on Notch on Steam, Windows 8, what's next
I get it that he's uneasy about Steam's dominance; but there's not a whole lot of reasoning behind it. There is competition, every publisher is trying to push their own marketplace. The problem is that they're all complete crap, look no further than Ubisoft's UPlay rootkit incident.

The last bit honestly left me reeling. As a Linux user, I feel like we're very close to turning a huge corner if Valve gets Steam/Source running well on Linux. This could be the nudge that starts an avalanche, and it's really disheartening to see such an influential figure dismissing it as though it's nothing; especially considering he's released his own game on Linux. Not to mention his reasoning makes no sense to boot - If anyone is capable of dealing with getting their hands dirty, it will be gamers who are accustomed to fixing buggy console ports and editing configuration files. For most others (Families and Corporations as he mentions), a browser and OpenOffice is already more than enough.

arthurbrown··on First screenshots of App.net
It seems like the name of this project alone is enough to guarantee traction problems. Having a searchable name these days counts for more than having a name that is clever, short, appealing, or anything else.
arthurbrown··on OnLive comes to Ouya, Controller Makes Full Frontal Debut
>> ... it's highly likely that Microsoft has already patented the letters X, Y, A, and B...

Nintendo and Sega have both used this scheme since SNES / Dreamcast respectively (as well as Nintendo DS).

arthurbrown··on Why Your McD's Burger Doesn't Look Like the One in the Ad
This is a segment from an Australian show (The Gruen Transfer) going over the same question without the transparent Maccas bias. The entire clip from the beginning is worth a watch and talks about the value of relentless advertising.

http://www.youtube.com/watch?v=5WUhrIOqdCs#t=3m45s

arthurbrown··on Why Django Sucks
I'm not quite sure I understand slide 48 which talks about constraints. Does a text editor have more or less constraints than an IDE? I would argue that it has less constraints, however I assume he is arguing that text editors are better which implies that they have more constraints. The same goes for Pen&Paper vs digital notes. Surely being able to write in any direction at any size with any style as well as draw means there are less constraints than simply typing a digital note. Am I misunderstanding which side of these examples he's actually advocating? How does OSX v Linux enter into this whatsoever?
arthurbrown··on I am Doing HTTP Wrong
I'd guess this impetus for this post came about after this meeting at pycon

http://kennethreitz.com/the-future-of-python-http.html

← PreviousPage 2 of 3Next →