HNHacker News
TopNewBestAskShowJobs

austinz

2,359 karma · joined May 26, 2013

submissionscomments
austinz··on Troubled welds on the Bay Bridge
Do you think the citizens of countries such as Japan, Canada, and Turkey should be offended that their governments are paying hundreds of millions of dollars to 'foreign' companies in the U.S. for (e.g.) the F-35 fighter?
austinz··on Troubled welds on the Bay Bridge
Parent was replying to a comment by a now-banned account, not to the article.
austinz··on Noncompete Clauses Increasingly Pop Up in Array of Jobs
Noncompete clauses are bullshit.

We already have an extensive infrastructure in place to protect the intellectual property and trade secrets of companies, including NDAs and those clauses assigning ownership of anything you produce to your employer. But the idea that companies can overstep this bound and place restrictions on how you can use your brain and your general knowledge to produce new, creative work that has only a secondary or tertiary relation to their IP is utterly vile.

If the technology existed to erase memories from brains, would these employers insist in their employment clauses that employees who resign must have any professional knowledge acquired on the job erased from existence? This is almost the same thing. If you are an engineer in a niche field, in particular, being barred from that field for a year or more is tantamount to rendering your professional knowledge obsolete.

austinz··on Swift impressions
Swift provides high-level concurrency as well; it just does so via Grand Central Dispatch rather than any built-in language primitives. (While there are no intrinsic language features comparable to Go's channels, I was told that part of the reason for the new trailing closure syntax was so that GCD invocations would look more 'natural'.)

I don't think Swift is trying to sell itself based on the 'override' modifier, overflow-checked arithmetic, Unicode variable names, or any of the other minor features which people keep on talking about. It has a far more capable type system than Objective-C ever had. Its pattern matching is far more than "C's switch statement, but without automatic fall-through". Except for backwards-compatibility, it de-emphasizes or eschews the many at-runtime dynamic features that Objective-C had (e.g. creating and modifying classes and methods dynamically). It has tuples. It's a huge departure from Objective-C, not just incremental improvements packaged into a new language (not that it invented these new features, of course), so it's doing more than just addressing 'minor qualms'.

austinz··on Swift impressions
Swift doesn't have a designated base class like Java, C#, or Objective-C's NSObject. It seems, though, that there are a bunch of interop considerations which means that you might need your Swift classes to inherit from NSObject for them to work properly with Cocoa code.

Swift also doesn't perform type erasure. You can do something like the following, as I believe is possible in C#:

  struct SquareMatrix<T> {
    let dimension: Int
    var backingArray: Array<T>

    init(dimension d: Int, initialValue: T) {
      dimension = d
      backingArray = T[](count:d*d, repeatedValue:initialValue)
    }

    subscript(row: Int, col: Int) -> T {
      get {
        return backingArray[row*dimension + col]
      }
      set {
        backingArray[row*dimension + col] = newValue
      }
    }
  }
austinz··on How to write an iOS app purely in C
So Apple is willing to pay $125 million for Be, Gassée wants $200 million, Apple ends up buying NeXT for $429 million (at least $319 million in cash, according to the citations), and your conclusion is that Apple "couldn't afford to buy [Be]"?
austinz··on Show HN: 2048 in Swift
Creator here. Glad people like it! I do have plans for slightly less useless projects in the future, but I did have a couple of reasons for building this particular project:

- I wanted to try out Swift and see how it felt in practice to build a reasonably-sized project in it - and to see if the Xcode Developer Preview was anywhere near up to the task. I also wanted to see how the Cocoa APIs were going to work with Swift.

- I had an existing Objective-C implementation that I could work from. I wanted to see if Swift could make the implementation easier to read, more elegant, etc. While the original is hardly a thing of beauty, I thought it still might be useful to see how business logic to perform the same task might differ between the two languages.

I hope people who take a look, fork the repo, download and play with the code will enjoy reading through it and maybe take it as a taste of how things might be done (or not done) in the future.

austinz··on Chris Lattner on Swift
Lots of people are having a hard time understanding the difference between dynamic typing and static typing with type inference.
austinz··on Flappy Bird in Swift
Wikipedia claims that SpriteKit uses the Box2D engine internally: http://en.wikipedia.org/wiki/Box2D
austinz··on Flappy Bird in Swift
SpriteKit was released last year with iOS 7. It's a pretty much self-contained 2D game engine like Cocos2D, including stuff like physics simulation. iOS 8 is going to ship with SceneKit, which is similar but for simple 3D games.
austinz··on Introducing Swift
According to http://en.wikipedia.org/wiki/Objective-C#History, that's actually almost exactly how it came to be. (Apple even experimented with changing the syntax: http://en.wikipedia.org/wiki/Objective-C#.22Modern.22_Object...)
austinz··on The Open-office Trap
I am thoroughly disillusioned with open offices. Headphones are a paper-thin barrier against being interrupted while in the midst of thinking; a good, solid, closed door might do the job better.
austinz··on U.S. Is No. 1, China Is So Yesterday
I think there's more to demographic destiny than constantly growing populations. For example, the 'demographic dividend' is a double-edged sword, resulting in economic growth if enough jobs can be created or the potential for massive unrest otherwise. (This is one problem which India and much of Africa is grappling with.)

At the same time productivity per worker has gone up dramatically in many industrialized and industrializing countries, even as (and in some cases because) of automation becoming more and more widely adopted. On one hand we're having discussions about how to handle large numbers of workers rendered redundant because of automation destroying jobs (e.g. guaranteed minimum income); on the other hand we're predicting that an economy won't have enough workers to fill all the jobs that will be created because of demographic trends. These things are contradictory.

austinz··on The Crazy Genius Behind Solar Roadways
Given how much some urban planners have denounced parking lots as being detrimental to cities, I wonder if there is potential for legislation to mandate that any new lot larger than a certain size must be equipped with some corresponding acreage of roof-mounted panels. It might force developers to think more carefully about building lots and mitigate the environmental impact of those that do get built. (Although, given the controversy that erupted when incandescent bulbs were banned, I don't see this proposal as being politically palatable.)
austinz··on Why Mass Effect is the Most Important Science Fiction Universe of Our Generation
> Despite writing at the turn of the last century, H.P. Lovecraft’s Cosmicism is something with which no major narrative of humanity’s journey through the stars has dealt.

Vernor Vinge's A Fire Upon the Deep tackled this very subject decades ago, and with far greater poise than Mass Effect did. (And I say this as a fan of the series.)

I suspect the author's reference pools are not as deep as they should be, and I say this because a lot of the topics that the author claims ME to be the first to address have in fact been bandied about in science fiction for a long time. Mass Effect is great in lots of ways; it brings together a lot of plot points and concepts from other series and synthesizes them together into a decently coherent whole. But the series is far from original thematically. (minor spoilers) In particular, the third game tries to address the idea of transhumanism in a way reminiscent of Deus Ex: Human Revolution, another game which came out a year before, but does it in a particularly cack-handed way. Even the ending choice in ME3 is thematically similar to the one from the earlier game.

austinz··on Kola Superdeep Borehole
So how is the drilling actually conducted? Is there basically a miles-long, rapidly-spinning, articulated shaft with a drill bit at the bottom and a motor at the surface? What sorts of weird and wonderful engineering challenges do you run into with that sort of setup, especially as your giant drill grows larger than 10 miles in length?
austinz··on How Wall Street recruits so many Ivy League grads
Exports include services as well as tangible goods.
austinz··on How Wall Street recruits so many Ivy League grads
A "young really bright scientist/engineer putting in 120/hr weeks at a stretch" is a recipe for mental illness, low-quality output, and burnout.
austinz··on Functional Programming Principles in Scala with Martin Odersky
I fit your criteria. I really enjoyed this class; I felt like there was a good balance between Scala-specific features and conventions, and a more general overview of the functional programming way of thinking. The programming assignments were surprisingly involved for an online class.

Since I can't learn anything from lectures unless I force myself to pay attention by taking detailed notes, I took detailed notes. You can find them at the link below, although I make no guarantees about their correctness. (Note that they may also spoil the answers to some of the impromptu in-lecture quizzes.)

https://docs.google.com/document/d/1Uk54kbCIKUx8eX2vJsX591ss...

austinz··on Why Did Quora Join Y Combinator?
Sorry, I missed my mouse target and clicked the wrong button, downvoting you.
austinz··on Lenovo, the Treasure Hunter of Tech
Fascinating story. Lenovo's rise to prominence reminds me of Haier, especially the presence of a charismatic, ambitious leadership figure not content to settle for just the domestic market. But why are there raccoons all over the article?
austinz··on Haskell tutorial for C programmers
This is great, and I've bookmarked it for reference while reading LYAH. Thanks for writing it.

For anyone who needs a refresher on DFA, Stanford's CS143 compilers class course materials are up on Coursera (https://www.coursera.org/course/compilers), and pretty helpful.

austinz··on Zombies once destroyed Japan's economy, now they're infecting China's
> China will really rise to world prominence when its common people enjoy free and fair elections, a free press, and good educational opportunity all over the country.

If you somehow knew that a hypothetical China in 2040 with all these things would still be pursuing domestic and foreign policy divergent from American interests, would you still be saying this? If so, I applaud your intellectual honesty.

austinz··on A Chinese copy of GitHub.com
I wonder what sort of technologies are popular in China. Heard rumors that there was a thriving golang community there, but that's literally the extent of my knowledge.
austinz··on How Steve Wozniak Wrote BASIC for the Original Apple From Scratch
Not to mention the consumer-grade GPU market that preceded GPGPU and a lot of the modern scientific uses for commodity/commodity-like hardware.
austinz··on The Singularity is not coming (2012)
> will probably continue

But will it, and why? This is little more than an article of faith. Computers are getting faster according to a given model, a model whose underlying technological process is reaching fundamental (scientific, not engineering) limits. We have no idea if whatever replaces that model will be anywhere as scalable as Moore's Law.

> computer chess

Computers play chess very differently from humans (they do what amounts to a brute force search of the state space and choose the best option). This is basically taking a well-known algorithm and figuring out how fast a computer needs to be in order to solve it in a tractable manner - cryptographers do the same thing when they decide that a cryptosystem can't be brute-force cracked in a reasonable amount of time. There is no well-defined algorithm for passing the Turing test, and given how so many of the 'interesting' problems in AI are outside the domain of highly logical, rules-based algorithms, using the same metric to measure them is not that useful.

austinz··on The Singularity is not coming (2012)
1. Moore's Law is not an ironclad law, it's an observation about improvements in integrated circuit transistor density. Given that there are not that many node shrinks remaining before we hit the fundamental limits of our current technology, scientific discoveries will be necessary to continue increasing transistor density into the far future. It is absolutely not a given that Moore's Law has to continue until the Singularity can occur, although it isn't impossible that it'll be around for several more decades either.

2. The most powerful hardware in the world is useless without software. Improvements in AI theory don't follow Moore's law, and there is no reason they should. Maybe your super-fast computer can run machine learning algorithms on a huge dataset, but it's not clear machine learning alone is sufficient to produce something on the scale of the Singularity. Anyways, strong AI is a very difficult problem, but in no case I know of has the limiting factor ever been the power of the hardware (except maybe for neuronal simulations trying to emulate the activity of a human brain).

austinz··on Go's power is in emergent behavior
Reading it again, that makes sense.
austinz··on Go's power is in emergent behavior
I'm not sure I understand why implicit interfaces are better than explicitly declared interfaces. (This is an honest question.) I do iOS stuff occasionally, and in that world one of the main purposes of interfaces (in Objective-C, protocols) is to explicitly declare that some entity adheres to a contract - it promises to implement some pre-agreed-upon functionality that other entities can use. What do implicit interfaces buy you? Better static type checking? Less typing?

/* Also, from the blog:

> Nowhere in this code did we ever declare a relationship between MyType and Answer.

"Answer" isn't in the example. Was this something from an earlier draft? */

austinz··on How Japan Plans to Build an Orbital Solar Farm
0.02%, if you are building a hypothetical network of power plants with the same total surface area as the state of Maryland in orbit.
← PreviousPage 6 of 12Next →