Better HN
topnewbestaskshowjobs
Log inSign up

andersource

1,192 karma · joined Jul 24, 2019 (7y ago) · 266 submissions

https://andersource.dev/

hi@andersource.dev

Have a nonstandard optimization problem? Could use an interactive visualization to explore complex data? I'd love to hear about it!

Submissions

comment 5y ago · link · parent

Thanks so much! Yeah that idea is really itchy now :)

I guess some people don't see (at least immediately) the artistic value in such things, and then it seems rather pointless.

comment 5y ago · link · parent

> I think to a large extent coding can be like making art.

That resonates very strongly with me.

> I enjoyed doing it. People don't seem to think that's good enough.

Yeah, I've found that a lot of times when you want to show something you've made to someone, they'll automatically expect it to be useful and judge it from that perspective. Perhaps that would be different if we could frame it in a way that from the beginning helps align expectations?

comment 5y ago · link · parent

Thanks! And that's really cool, added to the TODO list!

comment 5y ago · link · parent

Thanks, and that's great! Due to experiences like the above I would probably not even think of bringing this up in a regular interview, unless I get the vibe that the interviewer might actually find it interesting for its own sake (which isn't that easy - turns out I have a terrible intuition for which people would appreciate something like that).

comment 5y ago · link · parent

Thank you, I thought of writing one, this might give me the motivation to finally do it!

comment 5y ago · link · parent

Thanks!

First I'm generating the general geometry of the wings - the most basic shape is a "teardrop" / half of the infinity symbol (see this[0]). Then they are scaled and rotated randomly (within a range to match the other parts of the wings), and further perturbed to make the shape more random. Then I'm drawing lines from the "tip" of the teardrop to the edges and using them to color the segments. The final result is rendered with Three.js[1].

Obviously this is a very succinct explanation, it took me quite some work. You're welcome to look at the code[2], though it's quite messy :)

[0] https://en.wikipedia.org/wiki/Lemniscate_of_Gerono

[1] https://threejs.org/

[2] https://github.com/andersource/andersource.github.io/blob/ma...

comment 5y ago · link · parent

I strongly relate. I spent a couple of weekends working on some procedural art [0] and was pretty happy with the end result. When I showed it to some of my co-workers / manager, they were baffled. "Uhh.. OK. Why did you make this?"

[0] https://andersource.dev/2020/10/10/procedural-butterfly.html

comment 5y ago · link · parent

Thanks! Yeah that's my idea, I guess what surprised me is the ranges involved. In the few times I had to negotiate (always as a "seller" as in salary negotiation), I would state around 110% of my minimum, and I was really prepared to walk away if the offer was below that. That worked but I guess it conditioned me to treat buyers' offers as 90% of their maximum while in reality it doesn't make sense for them to start there...

comment 5y ago · link · parent

Thanks! So basically (typically, of course depending on circumstances) any number explicitly stated by the buyer is less than the true maximum and you can expect to converge on a higher price?

comment 5y ago · link · parent

A little OT but for anyone with experience - is the negotiation depicted realistic / typical? The final selling price is over twice the buyer's initial offer and almost 150% of what they said at one point is their max. I know it's a textbook negotiation but (obviously not having too much experience negotiating) I never thought that's really how they work in real life.

comment 5y ago · link · parent

That's a good point, thanks!

comment 5y ago · link · parent

For me personally, the reason is that I fully expect the pandemic to negatively impact productivity in ways completely unrelated to WFH (children in home instead of school, stress, lack of preparedness to proper WFH, etc.). In contrast, I find it difficult to think of pandemic-related but not WFH-related aspects that I expect to improve productivity. I'd be happy to be convinced otherwise.

comment 5y ago · link · parent

True. But then why not explicitly state that this evidence is from COVID? That would immediately allow people to calibrate their expectations. In relation to GP, COVID is the "natural experiment" here, not WFH.

comment 5y ago · link · parent

You're right, but then giving the title "Work from Home & Productivity" is misleading, giving the (IMO false) impression that results are generalizable for WFH beyond COVID. And there are some pretty strong claims:

> Therefore, productivity fell by about 20%

> Employees also spent less time networking, and received less coaching and 1:1 meetings with supervisors

> Employees with children living at home increased hours worked more than those without children at home, and suffered a bigger decline in productivity than those without children

I would say these results have more to do with COVID effects and forced, sudden WFH than inherent characteristics of WFH.

comment 5y ago · link · parent

They claim that it allows feasible computation of PCA (principal component analysis) on very large datasets. The key idea as I understand it is, instead of using some global technique to solve PCA (SVD), which cannot take advantage of the parallelism of GPU / TPU, they formulate PCA as a multiple-agent problem where each agent is trying individually to optimize its own "goal" (maximally explaining variance and being orthogonal to other "players"). There are two key non-trivialities, one is that the Nash equilibrium of such a formulation is achieved at the solution of "classical" PCA, and the other is that iterative, independent gradient ascent converges to this equilibrium.

comment 5y ago · link · parent

I had a lot of PTO accumulated from years of FTE, mostly unused. Talked with my manager to get approval for starting a side business, then used the PTO to get 1-2 days a week to work on it (also with manager's approval of course). I did this for 4 months and by the time my PTO ran out I was ready to go for it and quit. The plan was, if after 2~3 months it doesn't start to get off the ground, rethink my plans and probably not quit.

227.

The faulty digital clock problem(andersource.dev ↗)

1 points · by andersource · 5y ago · discuss

comment 5y ago · link · parent

Gladly! And yeah, the results really are quite good. This is why I like optimization problems - if you can formally capture what you want as an objective, and if you can find a way to optimize it, you can get surprisingly good results. Of course these are two very big IFs...

comment 5y ago · link · parent

That's quite an insight!

Actually the authors of the seam carving paper went on to do just that [0]. From the abstract: "We present video retargeting using an improved seam carving operator. Instead of removing 1D seams from 2D images we remove 2D seam manifolds from 3D space-time volumes. To achieve this we replace the dynamic programming method of seam carving with graph cuts that are suitable for 3D volumes."

[0] https://faculty.idc.ac.il/arik/SCWeb/vidret/index.html

comment 5y ago · link · parent

The title is missing the (IMO crucial) "and that's ok" from the original post.

comment 5y ago · link · parent

Yeah, I think it's very interesting because there's a lot of freedom in measuring the similarity and also other aspects of the process, for example optimizing for a "simple" starting configuration as mentioned in other comments.

comment 5y ago · link · parent

That's an interesting approach. The problem is that the function to be applied after the convolution is binary, hence not differentiable. You could replace it with a soft variation, my (wild) guess is it would still be difficult to converge:

* If the transitions are too sharp it will behave like the stepwise, non-differentiable original

* If the transitions are too soft, the optimization will converge to some middle-state compromise that will not behave as desired when binarized

But that's just speculation. Also interesting to note that in the very relevant Kaggle competition [0], top solutions don't mention differentiable approaches (as far as I've seen, I admit I haven't looked too deeply).

[0] https://www.kaggle.com/c/conways-reverse-game-of-life-2020/d...

comment 5y ago · link · parent

Kaggle recently hosted a very relevant competition - "Conway's Reverse Game of Life" [0]. A write-up of the 1st place might be an interesting read [1].

[0] https://www.kaggle.com/c/conways-reverse-game-of-life-2020/o...

[1] https://www.kaggle.com/c/conways-reverse-game-of-life-2020/d...

comment 5y ago · link · parent

Not OP but https://www.tribe.ai/

comment 5y ago · link · parent

This seems to me like an apples-to-oranges comparison, and reflects the transition of computers from a niche field dominated by curiosity to a mainstream business asset (one facet of which is the focus of the article). Many people today are still having fun with computers and I dare say that the people who had fun with computers in previous decades would have fun with computers today as well.

comment 5y ago · link · parent

Yeah, I wasn't even aware that such size dimorphism existed to such extent in some species.

comment 5y ago · link · parent

The blog post the article refers to (couldn't find it in the article itself): http://www.markscherz.com/archives/4800

comment 5y ago · link · parent

> Like others have said, effect of praise would be very specific to individuals, but some have said praise hasn't helped them much.

My understanding is that they were mostly referring to "fake" / superfluous praise, which I too respond quite badly to. But I think there's a big range between that kind of praise and no praise at all. Personally for me (and my guess is that for many people), if no matter how hard I work that's never acknowledged and I always get suggestions for improvement, that would create frustration and a feeling of unreasonable expectations from the company.

comment 5y ago · link · parent

I'm not sure I understand the purpose of the linked article. There are a few important distinctions, most notably (from the article itself):

> "We praise drawings ... because we want our kids to continue to work hard, and to do good work... But what we really want to teach our children... is that they should do good work because of the satisfactions it provides."

While I understand how this could apply to children (if not necessarily agree), we don't manage teams to have fun, we do want to encourage them to do good work.

As for the wider question, if a team is doing really good work, why not give credit where it's due? I feel like not acknowledging when people are putting in extra effort is a great way to discourage them from doing that.

comment 5y ago · link · parent

If you've already given up on trying to get the money back, maybe try to book a flight that is likely to be cancelled and hope to get properly refunded. It's a long shot but who knows
1
56789