HNHacker News
TopNewBestAskShowJobs

bmohlenhoff

151 karma · joined February 17, 2011

submissionscomments
bmohlenhoff··on When to use Bazel?
Yes, I started out by using genrule before going down the custom rule path. I was able to properly trigger bazel to generate the interface bindings but then lost the thread when trying to properly configure the output files to act as proper dependencies to other code (ie. generate C++ headers and libraries that could then be properly listed as dependencies by client code.)

I think part of the issue was that the generated code from the 3rd party tool did not align with the Bazel expectations about code layout (ie. paths relative to WORKSPACE). Likely solvable but not in the amount of time I had available to dedicate to the effort.

bmohlenhoff··on When to use Bazel?
I tried using Bazel a while back but immediately ran into a few issues.

The existing codebase I was working with did not lay out its dependencies and files in the manner expected by Bazel so dealing with dependency/include hell was frustrating.

Then there was a large portion of the project that depended on generated code for its interfaces (ie. similar to protobuf but slightly different) and trying to dive into the Bazel rules and toolchain with no other Bazel experience was not fun. I attempted to build off of the protobuf implementation but kept finding additional layers to the onion that didn't exactly translate to the non protobuf tooling. The project documentation seemed out of date in this area (ie. major differences in the rules engine between 1.0 and subsequent versions) and I couldn't find many examples to look at other than overly simplified toy examples.

All in all a frustrating experience. I could not even get far enough along to compile the interfaces for the project.

bmohlenhoff··on Hit songwriters ask pop stars to stop taking credit for songs they didn't write
Everything can be a conspiracy if one tries hard enough.
bmohlenhoff··on Hit songwriters ask pop stars to stop taking credit for songs they didn't write
Bingo; This "appeal to the court of public opinion" strikes me as a last resort due to a lack of negotiation leverage.
bmohlenhoff··on The testing pyramid should look more like a crab
Don't forget that generally e2e tests take longer to run and typically require more test assets.

For example, if e2e tests involve simulations running in real time, then by increasing the number of distinct e2e tests you also increase the requirement on test assets and/or overall CI duration.

bmohlenhoff··on A broken cable smashed a hole 100 feet wide in the Arecibo Observatory
Glad to hear others used the same house rule. It's definitely cheating.
bmohlenhoff··on Where is everyone getting all of this sourdough starter?
My wife created a starter from scratch last year using only water, honey, flour, and raisins. I think the recipe was similar to this (http://www.bellarminemagazine.com/making-your-own-sourdough-...). It has since churned out a loaf or two on a weekly basis (and the discard turns into pizza dough.)

My ability to remain in ketosis is apparently indirectly proportional to the availability of delicious fresh sourdough bread.

bmohlenhoff··on Cosmopolitan Cocktail
Er, what? It is an IBA official cocktail.
bmohlenhoff··on Airlines inching closer to dynamic pricing
Should be easy to game though if they offer "bargains to induce new users" as per the article.
bmohlenhoff··on Southwest to Stop Overbooking as United Uproar Echoes
> Business travelers are basically not going to voluntarily take a later flight at all.

This. As a business traveler, I don't know how I would justify this to my finance department and/or management. It would take too much effort to justify the change in travel plans for a shitty voucher that I'd probably never be able to redeem.

bmohlenhoff··on Cheating on a string theory exam
5400 = 90 min * 60 seconds

The test is a list of 23 true/false questions, so you can think of each question as a bit.

You've prearranged a list of 5400 unique 23-bit vectors, so he determines the bit vector with the most correct answers (ie. smallest Hamming distance) and leaves at whatever time offset corresponds to that bit pattern.

It's not a perfect scheme since you only have 5400 possible bit vectors, and 2^23 > 5400.

bmohlenhoff··on How to write a Bloom filter in C++
std::bitset is also a good choice if the number of desired bits is known at compile time
bmohlenhoff··on The Uber Model, It Turns Out, Doesn’t Translate
I've personally never felt that Uber was a particularly innovative business. The ability to temporarily commandeer a vehicle/driver has been a thing since vehicles were invented. The only interesting thing Uber ever did was the replacement of inefficient centralized dispatch of resources with their tech stack that directly connects consumers with suppliers.

It does not surprise me in the slightest that it doesn't translate well to other industries. If it did, I would expect to see a greater variety of preexisting businesses utilizing centralized dispatch in a manner similar to how the taxi/black car industry operated pre-Uber. Given that these are few and far between, I can only assume that either nobody thought of doing this before (unlikely) or that it's simply a losing business proposition.

bmohlenhoff··on Why Startups Are Making the Expensive Switch to Traditional Employment
Just because something has always worked one way doesn't mean it always will continue to work that way.

If a business is having trouble staffing during certain time periods then it's a pretty clear indicator that they might need to offer more to entice people to work those hours. It seems like a pretty clear example of the free market in action.

bmohlenhoff··on Show HN: My SSH server knows who you are
...presumably it doesn't allow root logins via SSH
bmohlenhoff··on Dash: A company card for every employee
Probably true, but it's pretty nice being able to accumulate hotel points/airline miles/car rental credits/etc while on the company dime.
bmohlenhoff··on U.S. Chamber of Commerce Works Globally to Fight Antismoking Measures
It strikes me as both grammatically confusing and arrogant to refer to this organization as "the US Chamber of Commerce" when it isn't affiliated with the US government at all. It's a lobbying organization.

It's analogous to calling something "the Google" or "the Microsoft."

bmohlenhoff··on L0pht’s warnings about the Internet drew notice but little action
It hasn't been avoided. This has happened a few times to various pieces of the Internet.

https://en.wikipedia.org/wiki/IP_hijacking#Public_incidents

bmohlenhoff··on We know where you’ve been: Ars acquires 4.6M license plate scans
Radar guns are regulated by the FCC because they are RF sources. They aren't going to come after you for mounting extra lightbulbs on your car.

Infrared bulbs are more similar to polarized plastic covers that obscure the plate when viewed from certain directions. Not sure if they are illegal or not but they are definitely outside the purview of the FCC.

bmohlenhoff··on A fundamental radio tech breakthrough that could double throughput
In my previous comment I was considering only saturation at the ADC, however, I later realized that they were probably performing cancellation in the analog domain first, and then throwing some DSP magic at it later on in the digital domain to handle reflections, etc.
bmohlenhoff··on A fundamental radio tech breakthrough that could double throughput
I don't get it either. It seems like the receiver should be saturating if it's really receiving concurrently with the transmitter.
bmohlenhoff··on The Challenge of Relativistic Spaceflight
Third can be used both as a noun and an adjective.

Noun form: "A third of a pizza".

Adjective form: "A third pizza".

bmohlenhoff··on Smarter log handling, the case for opportunistic logging
So instead of writing stuff out to disk, the idea is to keep everything in memory forever until something bad happens? Like, for instance, your machine runs out of memory because your debug logging consumed all of it.

How is that better?

bmohlenhoff··on Winning at Candy Crush
Step 4: Get DMCA'd for "circumventing" a "copyright protection system"
bmohlenhoff··on How I Got Kicked Out of Y Combinator and Then Raised $6.5m for My Startup (2011)
Figuring out how to use a system as designed isn't much of a hack...it would be more of a hack if he figured out how to reconfigure the system to route a bus or train directly past the front entrance of the building he was trying to get to.
bmohlenhoff··on Microsoft does away with stack ranking
It's nice that now they are going to value teamwork and collaboration more highly, but I don't see the lack of a curve making much of a difference in compensation level for the average contributor. The total size of the compensation budget is fixed, and they have to spend all of it.

Just because now 30% of the staff can fall into the Exceed Expectations bucket doesn't necessarily mean that the budget increases. The money gets divided differently, that's all.

It does seem like a positive change though if they can improve the culture of the workplace and minimize the amount of backstabbing, cronyism and political nonsense.

bmohlenhoff··on Why are Amazon, Facebook and Yahoo copying Microsoft's stack ranking system?
Because it's easy and everyone else is doing it. Next question?
bmohlenhoff··on Less is exponentially more (2012)
This. The nondeterminism induced by an uncontrollable garbage collector is unacceptable given hard realtime requirements.
bmohlenhoff··on Facebook use 'makes people feel worse about themselves'
Facebook is like comparing everyone else's highlight reel against your behind the scenes footage.
bmohlenhoff··on Wireless devices go battery-free with new communication technique
RF is nonionizing radiation, meaning that it isn't energetic enough to knock electrons off of individual molecules. Obviously it's impossible to say "it can't cause cancer" with 100% certainty, but in all the studies that have been conducted on RF over the last 70 years, there has never been any indication that nonionizing radiation causes an increased incidence of cancer.

Ionizing radiation (X-rays, gamma radation, etc.) is on the other side of the electromagnetic spectrum relative to visible light. These types of radiation are energetic enough to interfere with and ionize molecules, such as your DNA. This can directly lead to cancer.

The only thing dangerous about RF is that if you disperse too much RF energy into something (ie. your body) it usually comes out as an increase in temperature or as an influx of electrical current, which can cause internal/external burns, etc.

Source: mandatory yearly IEEE mandated RF safety training

Page 1 of 3Next →