HNHacker News
TopNewBestAskShowJobs

lscharen

522 karma · joined July 16, 2010

submissionscomments
lscharen··on Researchers propose solar methanol island using ocean CO₂
Also, they talk about methanol production, but if they are already going through the work of desalination, it would probably make sense to have an integrated processing facility to also extract products that are already commercially extracted from seawater (bromine and manganese)

Perhaps it’s feasible that other trace elements in seawater, e.g. gold, uranium, etc. could also be economically extracted...

lscharen··on Heat Your House with a Water Brake Windmill
https://en.wikipedia.org/wiki/Electromigration
lscharen··on Ask HN: What should a systems/low-level software engineer know?
Emphasis on 8. If you are writing code that directly controls hardware, then your software is the abstraction.

Hardware is physical and can be quirky. Signals take real clock time to settle down and your CPU is probably much faster than the transition time. Hardware can and does have bugs just like software. A bad ground pin can make your hardware do “impossible” things.

You need to have much more awareness of the context your code runs in the further down the stack you go.

lscharen··on Sears has another chance to avoid closing down
Re: Trust; I always found it a bit ironic back in the late 90’s/early 00’s that people would not trust ordering things over the Internet, but happily call a mail-order number and give a complete stranger (and anyone within earshot) their name, address and credit card number.
lscharen··on Tesla haters are parking their pickup trucks at Tesla Supercharger stations
See Rolling Coal (https://en.wikipedia.org/wiki/Rolling_coal) for another example of this mindset.
lscharen··on The Matrix Cookbook (2012) [pdf]
Matrices are mathematical batch processing.

The expressiveness and power you get from being able to cast and solve problems in matrix form is similar to the lightbulb that pops up when one “gets” the relational algebraic power underpinning SQL.

lscharen··on Golden Thoughts for a New Nuclear Age – from a new biography of René Girard
Back in the day John Carmack's .plan file was my social media feed.

https://garbagecollected.org/2017/10/24/the-carmack-plan/

lscharen··on Holographic Displays at the TGS2018
Can anyone compare the Voxon displays to the technique used in the old Sega Time Traveler arcade game?

I have to assume that it is fundamentally much more capable, but the video in the article makes it look (to the end user) quite similar.

lscharen··on Why almost everyone was wrong about Tesla’s cash flow situation
That sounds about right -- my rule of thumb is that $200/mo TCO is about as low as you can reasonably go "in general".

My last two vehicles were

1. 2005 Chrysler Pacifica. Paid $16,500 in '07. Sold in '17 for $1,900. A few sets of tires, insurance premiums, and (gently) hitting a couple of deer put it around $225/mo over those 11 years.

2. 2009 Pontiac Vibe. Paid $14,500 in '11. Still have it and it's only needed minor repairs (knock on wood). Sitting around $250/mo TCO, but it's still worth a few thousand.

YMMV.

lscharen··on New law lets you defer capital gains taxes by investing in opportunity zones
"Wealth grows wherever men exert energy," Arkad replied. "If a rich man builds him a new palace, is the gold he pays out gone? No, the brickmaker has part of it and the laborer has part of it, and the artist has part of it. And everyone who labors upon the house has part of it Yet when the palace is completed, is it not worth all it cost? And is the ground upon which it stands not worth more because it is there? And is the ground that adjoins it not worth more because it is there? Wealth grows in magic ways. No man can prophesy the limit of it. Have not the Phoenicians built great cities on barren coasts with the wealth that comes from their ships of commerce on the seas?"

-- The Richest Man in Babylon

lscharen··on Ask HN: Have you built a house?
Right. And even “small” things like deck footings need to use sonotubes or similar to get below the frost line. Otherwise one or two years of frost heaving will ruin that new deck.
lscharen··on What they don’t tell you about event sourcing
The last section on Operational Flexibility and the inability to change the event history raises a very good point.

Like most of the issues, the solution requires experience to know when you are at the Goldilocks point (Just Right). This specific issue has a lot in common with managing database migrations in django or any other migration system.

The ideal situation is to create migrations that can always be rolled back, but sometimes this is not possible to do operationally. For example, a schema change that restricts a field from NVARCHAR to INTEGER can only be generically rolled back if all of the unconvertable data is persisted. This can be mitigated by structuring the database to avoid these dead-ends, and that really is only gained by hard-won experience.

The problem with undoing operations via new events is the same thing -- unless you have foreknowledge of this kind of problem, it is very easy to accidentally create events that perform un-undoable actions. A very simple example of a problematic event would be something that modifies a foreign-key relationship -- let's say it's a digital asset in a game and you want the ability to transfer ownership of the item from one player to another.

The simple solution is a event like SetAssetOwner(asset_pk, player_pk). This would set the item's player foreign key field to the player's primary key. Easy. However, you have lost knowledge of where the asset came from and cannot undo this operation. A better solution would be to make an event SwapAssetOwner(asset_pk, owner_pk, recipient_pk). Yes, the owner_pk is technically redundant, but it provides a check against someone trying to steal an item with a maliciously crafted SetAssetOwner event that performs no checking. Even better, this operation can be reverted by sending the same event with the owner and recipient arguments reversed. Since these properties are part of the event message, they will be persisted in the event history and all of the information to undo the event is self-contained.

lscharen··on Telling the Truth About Defects in Technology Should Never Be Illegal
I think you're missing the (subtle) point that is trying to be made.

I can go to google.com or HN because I type the URL into a browser and the page is displayed -- I didn't need to go through an approval process or present a security token or anything else to gain access.

Now, what if I type in a URL into my browser that happens to look like company.com/users/12345/purchases and it displays a page of information. Did I "circumvent" anything in this case? Did I "exceed" my authorized access? If so, what is the fundamental difference between accessing google.com and this hypothetical URL?

lscharen··on FxSolver – A solver for engineering and scientific equations
Just so people know, Esri sells a Personal Advanced Desktop license for non-commercial use for (I think) $100/yr.

https://www.esri.com/en-us/arcgis/products/arcgis-for-person...

Normally an Advanced Desktop license with multiple extensions would run well north of $10,000/yr with an initial purchase price about 4x that amount.

lscharen··on Getting 4 bytes or a full cache line: same speed or not?
To me, the takeaway is that there is a ~10x performance difference between the near-worst case memory access pattern (330 cycles) compared to the best using SIMD (41 cycles).

A potential order of magnitude improvement hiding in the memory access patterns of your code makes this worthwhile information for a lot of devs.

lscharen··on Ask HN: As a team lead how to handle project going off the rails?
One thing to do is to push the knowledge and acceptance of the situation up the management chain, especially to the non-believing Product Owner, lest the Thermocline of Truth[1] be revealed in two months and three weeks.

1. http://brucefwebster.com/2008/04/15/the-wetware-crisis-the-t...

lscharen··on Spend analysis of 6 years, 686 rides, and $12k spent on Uber (2017)
I'll throw a data point in here: Three vehicles (2014, 2009, 2006), no accidents, rural Midwest. ~$2,000/yr for insurance with standard 100/300/100 coverage.
lscharen··on Completely Silent Computer
Heh. Back in the 90’s in college I would keep my phone on top of the monitor I was sitting at exactly so I would see the monitor juke just before the phone connected.

People always asked how I managed to answer the phone so fast. Electromagnetic Supplementary Perception, of course.

lscharen··on How Windmills as Wide as Jumbo Jets Are Making Clean Energy Mainstream
I think is a totally reasonable point of view and comes down to a classic cost-benefit analysis.

Are you OK with using the grid as a highly-reliable, ~infinite capacity power source to smooth over your uneven solar generation at a cost of selling your excess back at a discounted rate,

or

do you want to try and capture that discount yourself at the cost of having to buy, install and maintain your own integrated battery backup system?

Maybe the calculus works out in your favor for you, specifically. Maybe not. But it's good to have options.

lscharen··on Another Reason to Learn Morse Code: Kidnapping
Totally dating myself here.

In the Hardy Boys book “Hostages of Hate”, Frank Hardy’s girlfriend, Callie Shaw, is kidnapped and is able to send a secret message to Frank by blinking her eyes on a video recording.

Funny what sticks in your mind from a young age.

lscharen··on How slime-crazed kids made gunk a booming business
Ditto, except with an 8yo. She’s been making slimes for at least two years and has her own classification system (fluffy slime, butter slime, glitter slime, etc)

It’s at the point that other kids at her school ask her for custom slimes that she makes and sells to them for small $.

Chemistry and entrepreneurship ... could be worse.

lscharen··on Ask HN: Weirdest hack that you ever saw in production?
I would consider “black magic” to be something that works reliably due to some specific and idiosyncratic property of the environment that it operates within. Basically, something that is exceptionally tightly coupled. I think the novel FPGA solutions that genetic algorithms can create fall into this category; they often didn’t work on different boards, or even when the same board was plugged into a different power supply because the solution was overfit.

“A Story About Magic” is black magic in action. http://catb.org/jargon/html/magic-story.html

“The Story of Mel” is not black magic even though no one else understood his program. http://www.catb.org/jargon/html/story-of-mel.html

lscharen··on Ask HN: Weirdest hack that you ever saw in production?
I always thought of this bit of code as a great example of applied numerical methods techniques, rather than “Black Magic” The magic constant is derivable from standard methods and one can even choose to optimize other measures of error.

http://www.lomont.org/Math/Papers/2003/InvSqrt.pdf

lscharen··on SpaceX’s Falcon Heavy rocket sets up at Cape Canaveral ahead of launch
I often think of this kind of whimsical angle when I read other news stories about various archaeological and historical discoveries. There’s always so much discussion on how a particular statue is “the cultural center of the community” or that a jeweled box was of “great religious significance”.

How do we know that the Elon Musk of 3000BC didn’t just build a big obelisk for the lulz?

Probably a bigger question of the problems of inferring great significance from extremely few samples...

lscharen··on Cash-Burn Threatens Blue Apron 3.5 Months After IPO
100 times this. My wife purchased the Real Plan app and that has absolutely been the key to keeping us on track for cooking healthier.

We avoid the dreaded, "What do you want?" questions around meals and the app's autogenerated shopping list has really helped us reduce food waste and avoid worrying that we're missing one or two ingredients when cooking a meal.

lscharen··on How Many Years of Life Does That House Cost?
Except for the fact that you can sign up for ArcGIS Online as an individual for free and all of the application templates (in addition to tons of other Esri projects) are up on github.

e.g. https://github.com/Esri/storymap-cascade

Almost everything they release is under the Apache license.

lscharen··on Why I hate your Single Page App
Not evaluating them; evaluating code.

Just handing someone an expanded version of "implement good error handling" is not likely to result in a good product. Every project has nuance and subtle trade-offs -- the code review is an opportunity to teach juniors how to map abstract design principles onto concrete implementations without falling back to "cookbook / cargo cult" programming.

I want them to take ownership of their own code, and advance down the path of craftsmanship because I believe this results in long-term value -- both to them personally and to the project at hand.

lscharen··on Why I hate your Single Page App
"If I mis-enter information into a form, your error handling forgets all my information and I have to re-enter it."

This. I have a very short list of architectural must-haves that I use when evaluating junior dev's code at the start of a project, and not having robust error handling that preserves submitted form information is right up near the top.

It's an annoying design mistake with two input elements, unworkable with five, and just plain cruel beyond that.

lscharen··on Show HN: Transformation Invariant Reverse Image Search
I've been out of the Machine Vision space for a while, so my knowledge is somewhat out of date.

What research is out there on general Affine invariant vision algorithms and techniques?

For context, my practical experience ended in the mid 2000's when "jittering" was a bit of thing along with some occasional closed form estimators based on basic linearization approximations.

lscharen··on Doing things the wrong way to get the right result
Being able to redefine the problem to get at a "quick and dirty" solution is absolutely a useful skill. What I think gets glossed over in the fine article and in some of the other comments, is that this is really only a good approach when one can also see the full solution as well and understands how to evolve past the "mechanical finger" if it becomes necessary to refine the system.

Where people get into trouble is when they have a short problem space horizon and don't have a decent feel for the trade-offs being made and a reasonable understanding of how the "wrong solution" is related to the "right solution". That can lead to the creation of a hack-y, fragile and unchangeable system that can really limit progress in the future.

← PreviousPage 3 of 5Next →