HNHacker News
TopNewBestAskShowJobs

gresrun

1,169 karma · joined January 31, 2011

[ my public key: https://keybase.io/gresrun; my proof: https://keybase.io/gresrun/sigs/qslnYax7ZVzINm7KbNQW2xvnaDTRDtua49lhpMWt3vw ]
submissionscomments
gresrun··on Orbital Sciences Antares rocket explodes after liftoff
Pure speculation but I wonder if they rushed to test the engines that just flew. AeroJet's parent company claims they have lost over $31MM on the AJ-26 YTD[1]. There may be pressure from higher-ups to push through the issue seen at Stennis in May.

[1] http://www.spacenews.com/article/financial-report/42180aeroj...

gresrun··on Safe Publication and Safe Initialization in Java
Not sure, but their margins of error overlap so it could be just a blip. I wouldn't read too much into those numbers; my take away is I always preferred Safe DCL but Holder looks more performant and cleaner to write (at the cost of an inner class).

I wish Java had a one-true-way for one-time static initialization like dispatch_once() in Objective-C.

gresrun··on Loyalty Nearly Killed My Beehive
My friends are currently serving as missionaries in Tanzania and are teaching the art of beekeeping to help diversify the local economy and diet: http://makondefrasers.wordpress.com/
gresrun··on The Cargo Cult of Game Mechanics
Quick-time events are just a "Simon Says" mini-game. It is supremely lazy game-making; not a single gamer I know likes QTEs and I would venture to say that not a single copy of any game ever was sold because "Oh! This game has awesome quick-time events; I'm going to buy this game right now!".
gresrun··on Common App Rejections
Lived in the USA all my life and I have never even heard of "kilopounds"
gresrun··on CockroachDB: A Scalable, Geo-Replicated, Transactional Datastore
Ummm... http://en.wikipedia.org/wiki/Twink_(gay_slang)
gresrun··on CockroachDB: A Scalable, Geo-Replicated, Transactional Datastore
Trademark considerations aside, I'd vote for TwinkieDB
gresrun··on An analysis of Facebook photo caching
Most interesting is a new caching algorithm that outperforms LFU and LRU:

S4LRU: Quadruply-segmented LRU. Four queues are maintained at levels 0 to 3. On a cache miss, the item is inserted at the head of queue 0. On a cache hit, the item is moved to the head of the next higher queue (items in queue 3 move to the head of queue 3). Each queue is allocated 1/4 of the total cache size and items are evicted from the tail of a queue to the head of the next lower queue to maintain the size invariants. Items evicted from queue 0 are evicted from the cache.

Paper: http://www.cs.cornell.edu/~qhuang/papers/sosp_fbanalysis.pdf

gresrun··on Ask HN: Who wants to be hired?
Tampa FL · Local | Remote · Full Time | Contract

Stack: Java (10 yrs), iOS (4 yrs), Android (2 yrs), Redis

Resume: https://www.linkedin.com/in/greghaines | https://github.com/gresrun

Contact: greg AT greghaines DOT net

Experienced developer that prefers small, focused teams is looking to overcome interesting technical challenges to bring great products to fruition.

gresrun··on HTML Command Line Utilities
Mac OS X + Homebrew:

  brew install html-xml-utils
gresrun··on By The Time You Give Them a Raise, They’re Already Out The Door
If you are dissatisfied with your compensation, speak up before you go looking elsewhere. If you say you're leaving, do it.

Accepting a counter-offer is almost always a bad idea; no matter how much money is on the table. After accepting a counter-offer you are bought and paid-for, you decided to stay for the cash and, unfortunately, your loyalty to the company will be questioned forever after.

gresrun··on Anatomy of a cheap USB-to-Ethernet adapter
Yeah, we still use them. They work without any problems on Ubuntu.
gresrun··on Anatomy of a cheap USB-to-Ethernet adapter
We have used a similar dongle at our company for a 2nd ethernet adapter on our Foxconn-built boxes and found out that they usually don't have unique MAC addresses. This made our lives very difficult because Cobranet audio network uses level-2 addressing. We eventually found a supplier with real MAC addresses.
gresrun··on Australis is landing in Firefox Nightly
Personally, I like the rounded edges but just adding a corner radius isn't exactly falling far from the Chrome tree.
gresrun··on Apple Special Event October 2013 Live Stream
Nope! http://i.imgur.com/kwxQTDc.png
gresrun··on Why Java Now Rocks More Than Ever: Part 1 – The Java Compiler
I personally use the maven-shade-plugin for this because it has built-in support for handling special resource files like licenses, service definitions, and manifest entries.
gresrun··on Why Java Now Rocks More Than Ever: Part 1 – The Java Compiler
> 1. Runtime-linking _is_ dynamic linking, and it's a PITA that Java doesn't have an option for static linking, especially given the inherent fragility of the CLASSPATH.

It is possible to roll a 'fat' JAR with all your dependencies baked-in, which is as close to static linking as it gets in Java-land. I prefer this for stand-alone applications as it makes deployment a cinch at the expense of the size of the build artifact.

gresrun··on Show HN: goworker – a faster, Resque-compatible background worker
Author of Jesque here. Jesque has numerous additional features over Resque, including ability to dynamically change the queues that a worker polls and an efficient pooled worker implementation. Also available is a Java version of resque-web [1]

[1] https://github.com/gresrun/jesque-web

gresrun··on Manning not guilty of aiding the enemy, but convicted of multiple other counts
Not fascist. As an enlisted man in the US military, Manning is subject to the jurisdiction of the Uniform Code of Military Justice (UCMJ). [1]

[1] http://www.au.af.mil/au/awc/awcgate/ucmj.htm

gresrun··on Probability of acceptance of pull requests
> Some projects attract more inexperienced developers than others.

Fair.

> In many ways community submitted pull requests are a "million monkeys at a million typewriters."

I strongly disagree with this assertion. To argue that community cannot be lead or directed toward a common goal is very pessimistic. Sure, Joe in Idaho has a specific itch, but there's a good chance there is an opportunity to capture Joe's enthusiasm and willingness to do work on the project by working with him instead of treating him like a code-monkey at a keyboard. Community relations is hard because dealing with people is hard.

> 1. Tools that help maintainers cultivate the submitters talent pool on their project.

Yes, I agree that this is someplace where some tools would help tremendously.

> Github can help me discover what is happening to that function elsewhere.

Great idea. I'd love to see a "related diffs" tool for a given piece of code.

> So many of us are code-first, conversation-later types and that constantly conflicts with the social nature of our job.

I totally agree. Ultimately, tools will only get us so far; people skills must fill in the rest. Making "Joe" feel welcome and a part of the creative process requires measures of patience, kindness, gentleness and mentorship.

gresrun··on Probability of acceptance of pull requests
The curious question is why certain projects have significantly lower pull-rates; I doubt the quality of the pull requests vary that widely across projects.

Is it that project leadership has a clear vision for a product and feel pull requests are a distraction? If so, share the vision and enlist willing developers to help achieve that vision.

Is it that project leadership has a high-standard for the codebase? If so, explicitly state the standard and provide constructive feedback to pulls that don't quite measure up.

I guess my point is: project leadership has the ability to leverage a tremendous pool of talent that is interested in their project using the pull request mechanism. It does take effort and planning but the net result is so worth it to all parties involved.

gresrun··on Predicting Google Product Shutdowns
Bonuses are the norm in the finance industry. I worked at a financial research company for five years and got a bonus of roughly 10-20% of my salary each year, depending on that year's profits.
gresrun··on Github was down
https://status.github.com/messages
gresrun··on [dead]
Guess who sponsored the bill? Sen. Harry Reid, the same senator who, less than 6 months ago, railed against Mitt Romney for not disclosing his tax returns and, in 1974, boldly asserted that "[a]ny man or woman who will not be completely candid about his or her finances does not deserve to be in public office [...]"
gresrun··on Barack Obama Directs All Federal Agencies to Have an API
I'd be interested in the NSA's API...
gresrun··on JQuery knobs
if (curLevel == maxLevel && angleFromCenter > 0 && angleFromCenter < 45){ // Ignore } else { // Process normally }
gresrun··on Hotel Wifi JavaScript Injection
The original "web experience manipulation": http://www.ex-parrot.com/~pete/upside-down-ternet.html
gresrun··on High performance libraries in Java
Buffer pooling is still very much a WIP. (the first commit was 3 days ago!)

https://github.com/netty/netty/tree/bufferpooling https://github.com/netty/netty/issues/62 https://github.com/netty/netty/commit/c9968d6cbfa958f73a9868...

gresrun··on High performance libraries in Java
The excellent I/O library, Netty, deals with this by allocating a slab of direct memory, slicing it up and pooling the use of the memory.

It's the Java equivalent of writing your own alloc().

gresrun··on Vanilla Java: Using a memory mapped file for a huge matrix
The most enterprisy usage I can think of is that DirectBuffers are used by Ehcache/Hibernate's BigMemory product to cache off-heap.

DirectBuffers are also used in I/O libraries like Netty.

← PreviousPage 3 of 4Next →