Better HN
topnewbestaskshowjobs
Log inSign up

chuckcode

670 karma · joined May 20, 2013 (13y ago) · 239 submissions

Submissions

comment 11y ago · link · parent

One of the reasons people use "low level code" for performance is because the STL doesn't easily provide control of memory which is critical to performance. Electronic Arts wrote their own version of the STL largely so they could better control memory [1].

I'm not really sure about the rest of the myths. I'm a little confused about how "To understand C++, you must first learn C” is a myth since C++ is a superset of C so you kind of have to learn C.

[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n227...

comment 11y ago · link · parent

Yes, I could take some time and write it myself. Take a look at hdf5[1] and the features they have around meta information, data chunking, page level compression for efficient reading of sub areas of data spaces. It is a non-trivial amount of functionality but allows some pretty amazing performance, for example see what pytables [2] has built on top of it. Now if they had just made it easier to attach it to a wire as well as a file.

[1] http://www.hdfgroup.org/HDF5/ [2] http://www.pytables.org/moin

comment 11y ago · link · parent

Does anyone know of a data serialization framework that will do the usual structs and arbitrary size matrices? I'd love to use something like thrift for serializing matrices or other larger data over a wire or onto disk but last time I looked thrift, protocol buffers and avro were all struct oriented and there wasn't a good way to parcel up a matrix or large vector. Currently I've just been using hdf5 as the default way to store reasonably large data matrices, cubes, vectors, etc.

comment 11y ago · link · parent

Thanks for the additional info, be great to see those on the page as I had the exact same questions.

Really like the movie - amazing photography, especially how the hot springs became like their own character through the sublime water shots.

I'd be really curious to hear more about how the hotel has changed over time and endured. I'd also be very interested to hear more about the daughter taking over as this is a microcosm of a lot of tradition bending taking place in the country.

comment 11y ago · link · parent

Darn it, the internet just broke advertising again...

comment 11y ago · link · parent

Not sure he'll find many dates but I'm guessing there is a few million in angel investments already lined up.

comment 11y ago · link · parent

As zzleeper says in practice it can be quite difficult even if possible in theory. If there are other faculty that are in your field they may not want to offend a colleague who they'll be dealing with forever for a PhD student who will be leaving in a couple years.

comment 11y ago · link · parent

Certainly different but a couple years in the program you get to see it all up close and personal and much of the coursework is usually the same so not a total waste of time. Like any job or 5+ year commitment you also want to be sure that the program and people are a good fit for you personally and a masters is one way start with a commitment of "just" a couple years.

comment 11y ago · link · parent

If you're really unsure, try out a masters. It can actually be helpful in the job market and you get a couple extra years of advanced coursework and projects. In my experience getting a PhD is more about doing something for yourself, comparable to running a marathon for example. Where many can find joy in a simple jog but it can be difficult to explain why it is more "fun" at mile 20 than mile 2. PhDs certainly aren't about making money, or getting famous, or having a rich social life and thus aren't for a lot of people.

comment 11y ago · link · parent

It'a actually a little complicated but if you're interested in the details check out this stack overflow thread [1]. High level summary is that lapply() and functions built on top of it do some work in native C and so are generally faster but not all of the *apply() functions are faster.

[1] http://stackoverflow.com/questions/2275896/is-rs-apply-famil...

comment 11y ago · link · parent

Python has better and better support for R with Rpy2 and R like data frames with Pandas, which is helping me take advantage of the incredibly useful analysis libraries in R.

Also note that loops are slow enough that it is really worth learning the *apply() functions in R to avoid iterating over collections. For a relatively in depth explanation check out Hadley Wickham's book http://adv-r.had.co.nz/Functionals.html

comment 11y ago · link · parent

I find R to be a great language for exploring a data set and doing some prototyping. There are a lot of wonderful statistical tools available through the core packages and even more through the various community extensions. It does have some significant issues that I've found limit the usefulness outside of prototyping

- pass by value only means code tends to end up as monolithic functions

- very slow in loops so lot contorting to move things to matrix operations

- they just last year got a version out that starts support for vectors and matrices with > 2^31 -1 elements which limits larger data applications.

I find the plotting with ggplot and statistical functionality to be second to none though.

comment 11y ago · link · parent

Are there any studies that support productivity in an open office environment? The studies referenced in this article and others seem pretty negative overall. Certainly seems to be the trend at most companies these days that I've interacted with. Is it mainly just the cheaper option per square foot?

comment 11y ago · link · parent

Certainly correct. I guess it is new for me that I'm requiring my users to give their data so they can be served personalized ads.

comment 11y ago · link · parent

Am I being paranoid when I think that offering this "free" service is a great way to track people over even more sites and usually the most important conversion pages that don't have the usual google display ads. I don't see a big technological innovation here as it appears that mostly they are checking your cookies to see if they recognize you.

comment 11y ago · link · parent

What a misleading headline. Google will now look at your mouse movement but really be scanning to see if they've been tracking you across the web. Anybody who is is concerned enough about privacy to block/clean cookies will be assumed to be a non-human.

comment 11y ago · link · parent

I think H1-B's should entitle someone to work in the US at any company. Personally as a US citizen I think we're really lucky to get the worlds best and brightest to move here. Even if you feel different giving workers the ability to shop around for salaries would be a very effective way of ensuring that immigration is really about talent and not ensnaring workers at artificially low wages (which I've certainly seen personally).

comment 12y ago · link · parent

The current academic peer review system is an example of a process that worked fine when number of participants was small but fails at scale. I'd like to see something like hacker news or reddit's social version of vetting papers in addition to any formal review process, perhaps with additional moderation from known experts. There is currently no site for community review of articles or papers and I think it would be a great resource for scientists of all kinds.

comment 12y ago · link · parent

About 80% of folks I know with kids leave San Francisco before they turn 5. The big issues are high rent, variability of school quality and logistics getting kids+gear around. City has done some great work to upgrade the kid's parks but the rent, schools and logistics make it very expensive to raise kids in SF.

comment 12y ago · link · parent

Agreed, I think their data must be sparse for some areas but it would be nice to see them post at least the number, mean, median and standard deviation for each region. Also be interesting to grab data off craigslist to compare.

comment 12y ago · link · parent

Less distractions at night, so hard to get a few hours of uninterrupted coding time in the day to really dig into something.

comment 12y ago · link · parent

So they're turning captchas into a mechanical turk for free?

comment 12y ago · link · parent

From my standpoint the problem with H-1B and other visas in the US immigration system isn't that we're issuing too many but rather that they tie the workers to a particular company in a way that prevents them from changing jobs easily if they are underpaid. Personally I feel really lucky as a US citizen that incredibly talented people from all over the world are leaving their families to come here and contribute to our workforce. Even if you feel differently I think there is no reason to tie visas to a particular company as it prevents the market from working efficiently. Tech companies have already admitted to price fixing for wages [1] and the H-1B visa can certainly act as a way to prevent other companies from easily hiring your workforce.

[1] http://time.com/76655/google-apple-settle-wage-fixing-lawsui...

comment 12y ago · link · parent

Actually they don't report their individual positions on trades or often their liability very well as illustrated in the Atlantic's article last year "What's Inside America's Banks?"[1]. Banks file the usual annual reports as do other companies but the have a very different business model involving a lot of risk management and do not report their individual positions, derivative contracts, etc. Even the bank CEO's themselves can be quite surprised by what positions their bank is taking even like JP Morgan Chase which is supposed to be one of the better managed banks [2]. Reporting them in real time would be infeasible but some sort of delayed reporting to a website or other entity would allow third parties to see who is actually managing their risk.

Personally I don't think you're going to have regulations that scale to keep up with the banks so what does scale other than the markets regulating them? As far as I know most efficient market theory rests on transparency.

[1] http://www.theatlantic.com/magazine/archive/2013/01/whats-in... [2] http://www.forbes.com/sites/nathanvardi/2013/09/18/jamie-dim...

comment 12y ago · link · parent

I'd like to see all the banks and insurance companies have to report their holding and liabilities the same way that mutual funds do every so often (maybe 1 year after transaction). The only way to regulate these guys is to open up their books and let them regulate themselves (e.g. lots of leverage/liability means share holders run for exit). Letting all the players in the market regulate each other is the only thing that is scalable and flexible enough to keep up with these guys.

comment 12y ago · link · parent

Anybody know how much revenue gmail makes per user? I'm pretty sure I'd be happy to pay that to not have them scrape through my email. I think they have great services but am turned off by the idea of them owning all of my data as they are pretty up front about looking through it to sell advertisements against me. They are also getting really good at sifting through it with all the latest deep learning neural networks. I'd like to see google open the business model to include selling me a service up front rather than incrementally selling my data. Of course, I've been saying this since 1996 and always have had people look at me odd, shrug and say "but it's free and it works great".

comment 12y ago · link · parent

I really like the idea of "handoffs" that the article discusses It indirectly brings up what I see as a major problem for some of the most talented engineers I've worked with which is that some point they get too bogged down with the incremental features and maintenance on all the amazing stuff they've done in the past to work on new things. When it would take them a couple days to implement/fix X but weeks for someone else to come up to speed management just can't resist assigning it to them and eventually they become burnt out. Code reviews and mentoring can help this to reduce the time for new folks to spin up and contribute but I think a formal notion of handoffs is a really interesting idea.

Having been both an engineer and a manager, yes different tracks for different people are really helpful. The main thing I've learned is that different people want different rewards an there is no substitute for spending the time with people to figure out what sparks joy for them. Usually there is some baseline of money but often freedom, respect, and cool projects are just as important.

comment 12y ago · link · parent

Seems like the article as actually quite sarcastic about the benefits of coconut oil. From the article:

"So I stopped at a nearby children’s hospital and cured every child with a dropperful of coconut oil."

comment 12y ago · link · parent

Thanks! Just what I was looking for!

comment 12y ago · link · parent

LED on the headphones would be awesome... And possibly programmable through the cord, thanks!
1
45678