Hacker Newsnew | past | comments | ask | show | jobs | submit | more codezero's commentslogin

It's quite a bummer that he identified two things I identified that caused me to decide to leave academia, age and pedigree.

I was working in a field that wasn't super hot or trendy, but for which there was a lot of low hanging fruit that a ... lesser physicist could actually work on to move the needle. It was gratifying, but the "system" for granting PhDs, and granting funding isn't designed for "B" players, and it's a bummer.

My age and experience in other fields helped me contribute to the rest of my team's goals in ways that I think wouldn't have otherwise happened if someone from a more traditional path had been on the team instead. Oh well :)


Quora is a pretty small company, and the sum total of all startups (not including FAANGs) all going remote will be a small fraction of the population of workers. I guess that’s why you specified knowledge workers.

I dunno. Here’s why I think it will and will not happen.

My company has been up to 50% remote in the past six years (way earlier when we were smaller) and have gone fully remote since shelter-in-place.

We have a really well established remote culture, so it was pretty easy. We’ve had people join in remote roles who found that they were not able to work well in that way.

I think it takes a confluence of the company culture, the individual, and the management’s willingness to do new and different work to accommodate a remote work culture.

This will not be broad, and some who try it will fail miserably, others will discover new inefficiencies and problems they’ll sink a lot of time into trying to solve.

A bulk of the population will go back to their normal day-to-day, and as long as the rest of the world isn’t adjusting, I think it’s unlikely for such a dramatically different work style to take hold outside of a few niche areas.

I would love to be proven wrong though, as I really dislike living in the Bay Area, and I’ve become a lot more comfortable working and managing fully remotely over the past four months.

Related: My company is fully remote until 2021 - and we’re actively considering what to do after that. I am pretty convinced I will be moving forward with assuming my own team will be fully remote (support and services) if they want to, and I plan to only visit the office for important company/management meetings, but we’ll see what happens after the economy crashes completely.


There’s a pretty simple explanation, and I think the behavior is almost certainly a bug or a UX edge case they overlooked.

The entry in safari is acting only as a search box it seems, and Go takes you to the first result that is finds - which is the first result on Google, likely a paid ad, or just coincidentally a higher ranking.

If you visit the realty.com site directly (Not suggesting this is a workaround, see thread), then type it in, Safari remembers it and gives it higher priority. This seems to be a quirk of a “first visit” UX - it still is meaningful to anyone who has competitors with similar names, and I’d call it a bug to not check the domain first, though assuming good intent, maybe it does, but something about that domain is not right for some heuristic (HSTS, something else?)


>If you visit the realty.com site directly

How? He literally types "realty.com" (ie: the full domain) in the bar and it goes to "realtor.com."


That’s what I thought I explained.

If you look at the list of items that appear below his typing, the “Top Hit” is “realtor.com” - I am saying that this is reading the typing as a search, and not as a domain. It’s a bug imo that the domain isn’t considered first.

I think it came across as if I’m saying this is correct behavior, I’m not, I’m saying it’s following the UX available, it’s not a nefarious trick to redirect to a competitor. It’s still damaging and needs to be fixed.


I don't think people are misreading your post as approving of the bug. What people are responding to is your suggestion of a workaround: "If you visit the realty.com site directly..."

And the question is: How do you visit the site directly if typing the domain name into the url field doesn't take you there. Your workaround either doesn't work or needs more explanation.


Whoa, thanks for that perspective.

That was NOT meant to be a recommended workaround, that is absurd, so thanks for the downvotes folks!

I was pointing out that after doing that, the default UX behavior leading to the “bad” website no longer happens, indicating it is all about UX and not a DNS thing, or other weird Safari bug.


Feel like this may be the case. It was redirecting me on every attempt initially.

The second suggestion when typing `realty.com` was `Google search: realty.com`. Clicking on that took me directly to `realty.com`, which is also misleading because I was expecting to be taken to a list of Google results where I’d attempt to click on a link to `realty.com`.

Typing in `realty.com` works every time as expected after that.


How do you 'visit the realty.com' site directly if it won't let you type the exact url and go to it?


That’s the bug. I’m not saying it’s not broken, it totally is. I’m explaining why it’s doing what it does from the UX available, in an attempt to differentiate between bad UX/design and some malicious thing done by Apple to a specific website.


I think somehow Apple is getting monetized by Safari suggestions and is stealing this traffic from sites like Realty.com and getting paid by Fortune 500 companies like Realtor.com


I doubt it. I’m sure they are monetizing things associated with it and they should, but Apple would get dragged if they were doing something shady, or maybe not, Google does this and only HN is annoyed (paid results, AMP, licensing google to FF etc. )


How many other businesses are getting screwed by this? Are you saying it’s okay because “oh other companies kinda do the same thing”... come on... direct domain search goes to another domain.... that’s bad, super bad. Are they censoring other searches by deciding what you should and shouldn’t see? I don’t want to be all “conspiracy theory” here but come on... this is a problem, just admit it.


To answer your actual question: put in the https URI scheme first. It won’t assume it’s a search.


Sounds like you were generating a beat frequency, pretty neat :)

https://en.wikipedia.org/wiki/Beat_(acoustics)


The cynic in me assumes they are doing this so they can make Amazon Basics versions of popular counterfeited money and remove the angle that counterfeiters are using...


Yep, I'm not even a hobbyist in this area, and immediately wondered if there was an alignment change because of it.

With that said, it sounds like at least with GCC, a global constant would go in the TEXT section of the binary and I can't think of why that would affect performance, especially since the variable was seemingly unused. Neat, I hope someone finds the thread to pull here :)


> it sounds like at least with GCC, a global constant would go in the TEXT section of the binary

I don't know why you think it sounds like that, but GCC (on Linux) puts global constants into the .rodata section (read-only data) and other global variables into the .data section.

> I can't think of why that would affect performance, especially since the variable was seemingly unused.

I'm guessing data alignment and corresponding changes in cache hits and misses. But I wonder if there's a scenario where this change changes the offsets of other variables from the base of the data section, which changes the encodings and therefore the sizes of the instructions accessing those variables, which overall changes code size and might cause code alignment issues. Probably too far-fetched.


On macOS, "gcc" puts strings that don't include a null byte in the TEXT section. I put quotes around gcc, since it seems that by default macOS aliases gcc to clang.

You can run the program I built here to see for your self: https://github.com/vivekseth/blog-posts/tree/master/Jump-Add...

Since the string in the TEXT section, we can actually execute it as if it were code!

After you build the program you can run `otool -t ./a.out` to verify that the string `execString` is indeed in the TEXT section.


Interesting. And if you put a null byte at the end of that character array, it would put it in a different section? I don't have access to MacOS, but I would be interested in seeing the output of clang -S on that code (with and without a null byte), maybe you could add it to the repository?


If I'm remembering correctly (this was from 3 years ago), the string was moved to a different section if it had a null byte in the middle of the string. That's why coming up with the assembly I used was kinda tricky.

Here's the output as-is: https://gist.github.com/vivekseth/20f319d2a9978af57d926b649a...

Here's the output with a null byte in the middle: https://gist.github.com/vivekseth/fc50319aaac24588bcf568209b...

From what I can tell, it seems like both strings are in the TEXT section now. Maybe something changed, or I'm remembering incorrectly.


Thanks for the correction, hopefully my statement that I'm hardly a hobbyist makes it clear I'm not super sure :)

I guess I don't understand enough about how this variable sitting in memory might affect hit/miss/alignment especially if it's not used in the program as it's running.

Would it be that some variable that is used is pushed off of a page in memory or something by the unused variable, so access it is slower? I guess that makes sense.


> ...a global constant would go in the TEXT section of the binary...

Wouldn't it go into the .rodata section, not .text?


I'm not sure, I am parroting what I thought I read on SO - so you are much more likely to be right, sorry about that!


clang seems to work this way, and macOS aliases gcc -> clang by default. Wrote more about this here: https://news.ycombinator.com/item?id=23634495


Thanks! Glad there's an explanation for my confusion :)


That's a bloody clever trick :)

I assume Apple is hoping to rely on its curated app store to protect against that, but that is more of a social attack, so maybe we'll see it happen or something similar.

The "easy" fix is to make it obvious/hard to hide what the _real_ app clip should look like in-situ.


Funny, I got on a C64 kick recently as well, but it ended up bringing me down a weird rabbit hole to CollapseOS, and now Forth, so I am thinking maybe I'll write a Forth for C64 in assembly for fun. I won't bother googling it, but I assume Csixtyforth is already taken.


I'm getting the feeling that this is part of a longer term partnership where Microsoft acquires Nvidia, but for a weird reason: Azure cloud.


I happened upon this comment a bit late, and caveat I'm not really a software engineer, but this comment made me think of something...

I've written a decent amount of code professionally in the first and second styles.

I sincerely prefer the second style, for reasons that are hard to articulate, maybe the aesthetic, the space, or something that I assume is equally as questionable.

After I stopped writing a lot of code, when I got pulled back in to debug or provide context long after the fact, in both cases, it was way easier in "real" code bases, to catch myself back up on things in the case that the code was of style 1, than when it was of style 2!

I may be alone in this sentiment, and I even regret that I have it.

I think there is also a bit of satisfaction in writing the code in the second example, especially when the example is a lot more complex than the one provided here.

Maybe it comes down to how much re-reading/maintenance your codebase actually needs. I wonder if coding convention/style has been mapped to the types of problems that code creates and the subsequent repair of those problems being dependent on the code style... I'm sure if I google it I'll find something :)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: