Better HN
topnewbestaskshowjobs
Log inSign up

gresrun

1,169 karma · joined Jan 31, 2011 (15y ago) · 108 submissions

[ my public key: https://keybase.io/gresrun; my proof: https://keybase.io/gresrun/sigs/qslnYax7ZVzINm7KbNQW2xvnaDTRDtua49lhpMWt3vw ]
Submissions

comment 14y ago · link · parent

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...

comment 14y ago · link · parent

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().

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

We actually do this exact thing to send dynamic parameters to a chart-generating backend server. It works great; you get a surprising amount of compression using gzip (2-4x space savings) and the URLs are naturally cached by proxies without any magic!

comment 14y ago · link · parent

Statistical analysis can give you a lot more than just what I like to read. The power of statistics never ceases to amaze: http://en.wikipedia.org/wiki/German_tank_problem

comment 14y ago · link · parent

We're encountered this issue when dealing with ETF tickers. We use Linux but a 3rd-party redistributor was on Windows; the reports we created had file names in the form <TICKER>.pdf and, what would you know, PRN.pdf caused all sorts of trouble for them...

comment 14y ago · link · parent

You could fit many QR codes on screen at a time.

Or, better yet, you could just send raw pixels as bits, white = 0, black = 1. With 1024x768 HD video, that's a possible 768K/Frame => 22.5M/s @ 30 FPS!

98.

Show HN: Facebook iOS UI Clone(github.com ↗)

1 points · by gresrun · 14y ago · discuss

comment 15y ago · link · parent

We had a version of our app be approved by Apple with a critical login bug for anyone how had never installed the app before. Apple didn't even bother to launch the app or else they would have received the error! Now, obviously, this was our failure to catch this in QA but, seriously? Why even have a review process if you're not even going to bother logging in with the credentials we supplied?!

comment 15y ago · link · parent

Being Right or Making Money

http://www.amazon.com/Being-Right-Making-Money-Davis/dp/0970...

comment 15y ago · link · parent

The Triumph of Contrarian Investing : Crowds, Manias, and Beating the Market by Going Against the Grain

http://www.amazon.com/Triumph-Contrarian-Investing-Beating-A...

comment 15y ago · link · parent

It looks like he ran Sam Soffes' json-benchmark: https://github.com/samsoffes/json-benchmarks

That being said here are the results I got on my iPhone 4 (compiled with -Os) Reading: http://yfrog.com/khul0wsj Writing: http://yfrog.com/h0nqgzej

comment 15y ago · link · parent

Axure (http://www.axure.com/)

comment 15y ago · link · parent

There is also a Java version that I wrote a few months ago if that's more your cup of tea: https://github.com/gresrun/jesque https://github.com/gresrun/jesque-web

comment 15y ago · link · parent

Try this:

ARCHFLAGS="-arch i386 -arch x86_64" perl -MCPAN -e 'install Crypt::OpenSSL::RSA'

comment 15y ago · link · parent

Sun didn't fail; it was acquired and the right to the logo are Oracle's.

107.

Old-School Silicon Valley Company Logos ON T-SHIRTS(abandonwear.biz ↗)

12 points · by gresrun · 15y ago · 14 comments

108.

Jesque: A Resque client in Java(github.com ↗)

3 points · by gresrun · 15y ago · discuss

1234