Better HN
topnewbestaskshowjobs
Log inSign up

coder543

6,699 karma · joined Jul 18, 2012 (14y ago) · 1,967 submissions

My email is at gmail using my username.

Backend-focused full-stack engineer with 8+ years of experience, mostly focused on Go, Rust, and TypeScript, but open to other options.

Resume: https://drive.google.com/file/d/1VNC272B3n7ZEfppMHkm2wGgaINwYl4Av/view

Submissions

comment 4y ago · link · parent

The Raspberry Pi 4 uses a quad core cluster of Cortex A72 cores, not A53. A72 was released in 2016, but the Pi 4 also has them clocked to run at 1.5GHz. Either way, I don't think it's embarrassing for AMD's 2013 Jaguar to be beaten by cores that are 3 years newer and running at a 50% higher clock speed. I thought Jaguar was pretty cool at the time that it came out, but technology has continued to move swiftly since then.

comment 4y ago · link · parent

Yes, but... it is difficult to do that on underpowered hardware. Modern browser engines seem to take a lot of resources to do anything at all, which gives you even less headroom before you write a single line of code. I don't think the Mach-E is equipped with a very powerful chip for the infotainment system. Since I can't find any reference to what it is, I would assume it's nothing to be proud of -- some kind of really old ARM chip, maybe.

If they equipped the Mach-E with a reasonably powerful SoC for the infotainment system, then I would agree 100% that a React-based UI could be implemented in such a way that it operates smoothly.

comment 4y ago · link · parent

Tesla uses Qt.

Ford is using an HTML-based interface in the Mach-E (and vehicles which get infotainment systems derived from that new generation of infotainment system). I've seen rumors that Ford is using React to power that interface, but I wasn't able to pin down any real sources.

This explains to some degree how Tesla is able to have such a buttery smooth UI on such terrible Intel Atom hardware (until recently.. they're switching to much better hardware now). At the same time, the Mach-E interface is not very smooth at all, but it is functionally pretty good. I think Ford should have a leg up on rapidly improving their infotainment interface, given that I would expect React to make some things easier than Qt... but Ford has so far failed to demonstrate that they can effectively distribute OTA updates, regardless of early promises. Hopefully they get that figured out soon.

comment 4y ago · link · parent

TechEmpower appears[0] to be using Laravel 8.70, which was released about 3 months ago. Much less than 7 years ago.

The numbers there don't paint an encouraging picture either, but I'm happy to concede that performance isn't everything... it just doesn't matter for some applications. But, numbers like these are pretty appalling to me. (And yes, I feel the same way about Rails.)

[0]: https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...

comment 4y ago · link · parent

I’m not conflating them in the way you think I am. You seem to be unaware of what a PWA actually is.

As an example, if you go to twitter.com on your iPhone in Safari, you can click the share button, click Add to Home Screen, and you will get a very app-like Twitter experience when you launch what you just added to the Home Screen. Because it is an app.

Literally the only reason I’ve seen that most people would be dissatisfied with the Twitter PWA is because it lacks notifications. In my experience, it is often faster than the native app and does fewer dumb things, like clicking on a YouTube link actually opens in the YouTube app, instead of the way the native Twitter app tries to keep you in a modal web view.

Regardless of Apple marketing, PWAs run in a more secure environment than native apps, because Safari is used to dealing with untrusted code on every single page you load. Apple leaned too much on their insufficient app review process instead of native app isolation technologies for too long. They have fortunately corrected course over the last couple of years… but native apps still present higher risk.

(PWAs also run completely isolated from the regular Safari browsing session, so you will naturally need to sign into Twitter again even if you were already signed in within Safari, but then it stays signed in exactly like the native app.)

comment 4y ago · link · parent

Regarding people not wanting push notifications, I would refer you back to this comment from a couple years ago: https://news.ycombinator.com/item?id=24643185

There is a small but significant group of people that I've only found on HN who seem to claim to just not use notifications at all on their smartphones, but this is not how most people operate.

Regarding your question, there are definitely still important areas such as Background Sync: https://caniuse.com/background-sync

If you try to send a message in WhatsApp, Signal, or whatever, but you were on the elevator and your phone was offline at that moment, it would be a pretty poor user experience if the app didn't send the message as soon as your phone was connected again, even if you had switched away. This is currently problematic for PWAs on iOS. Similarly, if you get a notification, apps will often get a small allocation of background time to fetch content related to the notification so that it is cached when the user clicks on the notification. Apple wouldn't offer this to native apps if they didn't think it was useful.

Here's an article talking about the benefits of the feature: https://developers.google.com/web/updates/2015/12/background...

"Web apps" in this context should just be thought of as "apps". The fact that they're effectively bookmarks added to your home screen and operate without the user interface of Safari is just an implementation detail. I'm not talking about spam blogs trying to send you notifications. If you were required to "install" a PWA to your home screen before it could prompt for these other permissions, that would be perfectly fine, and a great way to avoid getting spammed for requests to send you spam notifications from random websites. Safari has fallen way behind other browsers on lots of standards, not just PWAs, so it's not terribly surprising that they aren't keeping up with PWA-related standards either, but it is disappointing. And, of course, Apple still doesn't allow third party browser engines to fill in the gaps.

comment 4y ago · link · parent

> They've clearly said many times "this year have helped developers earn x billions through the appstore". Then it's easy to calculate their cut. But making money is not illegal.

No... it's easy to calculate their revenue, but it's not easy to calculate how much profit they made versus how much it cost them to operate the App Store. Pure revenue is largely irrelevant, from what I understand. As you say, making money isn't illegal, it's just the sign of a successful business.

> The app store is only a monopoly on iOS, not on phones or computers in general. I think it will be very hard to make that case.

I completely agree, under the way the laws were written decades ago. A lot of powerful people have been moving to update the way monopolies are understood for the digital era, and to remove Apple's monopoly over iOS. In the US, I can point to various examples of this, but these two will do for the current discussion:

https://9to5mac.com/2020/10/06/app-store-gives-apple-monopol...

https://www.cnbc.com/2022/02/03/senate-committee-advances-op...

Whether these attempts succeed or not is difficult to say, given how strongly Apple lobbies on their own behalf.

Knowing exactly what the P&L look like for the App Store would make it easier for Apple's opponents to make the case that Apple is misusing their position to take advantage of large numbers of people and businesses within the US due to a lack of competition for iOS users, which might make their government representatives push harder on the issue.

That's the political reality as I see it in the US. I could be off base, but there has been lots of discussion about Apple and their App Store again lately.

comment 4y ago · link · parent

I still don't understand why the blame would be any different if something goes wrong with a dating app (as in the Netherlands) versus something going wrong with virtual events that also aren't held in the app, but require the use of Apple Pay, versus physical goods, which don't require Apple Pay.

I think most customers are happy to assign blame to Apple regardless, since the app went through Apple's hand curated App Store. That may be illogical in the case of physical goods, but I've seen people assign blame for far less. It's also still illogical in the case of virtual events, even though those use Apple's IAP system and 30% cut now.

comment 4y ago · link · parent

Obviously Ma Bell makes lots of money from their telephone system. What's wrong with that?

There are limits to everything. https://en.wikipedia.org/wiki/Breakup_of_the_Bell_System

unfocussed_mike's point is that Apple has obfuscated App Store P&L for years to try to keep regulators from feeling obligated to step in. There's no other obvious explanation for why they would keep it secret from both investors and the courts, and "the purpose of a system is what it does."

comment 4y ago · link · parent

> I generally like to cancel trial memberships immediately after signing up to ensure that I don’t forget about it and accidentally get charged for something I don’t want. [...] Most online services (including all App Store subscriptions) are fine with this approach.

Except for Apple's own services, which includes Apple Music, Apple TV+, Apple Arcade, and Apple Fitness+. All of these will instantly terminate your trial if you cancel during the trial period, rather than terminating at the end of the trial period.

This goes against the way App Store subscription trials work for everyone else. Why? Because Apple isn't bound by their own rules, and I guess Apple wants people to forget and let the trial lapse into actual payment. It is certainly a proven (if unsavory) technique for making money.

comment 4y ago · link · parent

Because the warning is about the payment method, not how tangible the goods are. You can directly add credit cards to the Uber app on iPhone, completely outside the normal Apple payment flow. Apple doesn't require Uber to provide an obnoxious full-page modal warning that is intended to discourage people from adding a credit card to their app.

This kind of double standard reveals the true nature of this warning dialog, which is just retaliation against the app makers who wanted outside payment methods and the regulators who agreed. Otherwise, Apple would have already required Uber to add such a dialog.

comment 4y ago · link · parent

PWA means "progressive web app". You know, the vision Steve Jobs and Apple had for iPhone apps before they released the App Store.[0]

What about virtual experiences that are sold through an app that a customer uses, but are held on a different virtual platform? We’re not talking just about virtual events held through the app or FaceTime, we’re also talking about virtual events held through Zoom calls, it’s just that the app maker (for example, Airbnb) used their existing customer relationship to market virtual experiences, and Apple somehow decided that was different from the exception to selling (physical) goods and experiences that are also used outside the app.

If they aren’t using the app itself or FaceTime, how is it any different from an in-person event?

What if that in-person event includes teleconferencing equipment that links two locations together, do you suddenly need to give Apple 30%?

Apple's rules have an exception for 1:1 virtual events. So, if you suddenly bring your significant other to a virtual event that was classified as 1:1, will the app maker need to implement facial recognition DRM to ensure that there is only one participant on each side of the virtual event, or else they are in violation of Apple's rules and deserve to be banned because two people showed up instead of one?

The rules are deeply tedious, and often have no obvious rhyme or reason.

Regardless, Apple changed the rules, and I don’t have an option to opt out without giving up everything I’ve already bought. I could not have known they would change the rules in the ways they have, so to your earlier point, I could not have made a more informed decision. Would you like to offer the refunds on Apple’s behalf? Doubtful. This is clearly different from other retail relationships in ways that would benefit from being regulated. That’s the core discussion here. Apple is not just another retailer, and the App Store is not just another store.

> Clarifying the rules is not the same as changing them, ask any hermeneutic.

They did not clarify the rules. They absolutely changed the rules, and this is not the first time either. Your whole argument is invalid if they changed the rules, so of course you're holding on dearly to that incorrect point. Apple argues that some apps were accidentally paying them revenue for that already, therefore it would be "unfair" for them not to take that revenue from everyone... but it wasn't in the rules before, period. Apple added the rule so that they could add more revenue.

You may think my opinion is irrelevant, and that’s fine, but my opinion is as logically self-consistent as I can make it. Apple’s rules are the ones that hold very little self-consistency right now, and are just overreaching in any way they think they can get away with, which is getting tiresome.

[0]: https://9to5mac.com/2021/06/03/remembering-apples-sweet-solu...

comment 4y ago · link · parent

> Apple’s policies remained the same.

No… they didn’t stay the same. Apple has changed their policies, numerous times. In this specific case, it is easy to point to the changelog that added person to person classes as something that owes Apple 30% commission.[0] Many large companies' lawyers clearly interpreted the guidelines to not include such events until Apple updated the guidelines, or else Apple would not have updated the guidelines and talked to the press about it. I don't think you have much ground to stand on here.

Also, whether an activity is physical or virtual should be entirely irrelevant. It was never communicated to me when I moved into the iOS ecosystem, nor was it in the App Store guidelines. Yet... you think it is unreasonable that customers should be given the same freedom from monopolies that they have when it comes to other physical and online retailers?

Apple continues to move the goal posts on what people owe them money for, both by expansion of what the App Store is intended to contain and expansion of their rules, and it is detrimental to both consumers and businesses, who are both locked into Apple's ecosystem and have little to no choice in the matter at this point. If you like monopolies, then cool, but... I believe Apple needs to make some serious changes, and it is clear that I'm not alone in these thoughts.

On a related note, if Apple will properly support PWAs (including push notifications, which have been rumored to finally be making an appearance 6 or 7 years after Android did it), then that will dramatically change the balance of the equation. Very few companies offer PWAs because they lack push notification support, which they consider to be essential. Many HNers like to act as if push notifications are just an annoyance and that they prefer not to have them... but that's an irrelevant opinion outside of HN. I don't think lowering the App Store commission or allowing unrestricted, revenue-free sideloading are the only options... I think properly supported PWAs are a perfectly valid third option for most use cases, and I would care a lot less about this issue when that happens. PWAs already do not need to report any of their revenue to Apple, and that should remain the case forever, unless Apple is planning to start charging for the privilege of using websites. (To head off one obvious digression, no, Apple absolutely doesn't deserve to charge for providing push notifications... it's an essential feature of literally any smartphone, and they were paid for that service when the consumer bought the phone. Apple also doesn't let anyone else run a competing notification service on the phone using a background process to hold open a network connection. If Apple doesn't like offering notifications for free, they should feel free to raise the prices of the phones they sell, but they should have been pricing that in from the beginning. Chrome and Firefox don't charge money to provide push notifications either, and they weren't even paid a single cent by either the user or the developer. But, if Apple were to charge less than a cent per notification the way that developers have to pay for SMS messages, it wouldn't be the end of the world. 30% of all transactions just to use notifications? No, that's not reasonable under any circumstance.)

[0]: "3.1.3(d): Person-to-Person Experiences" https://developer.apple.com/news/?id=xqk627qu

comment 4y ago · link · parent

Ah, whoops, [0] was meant to link to this comment: https://news.ycombinator.com/item?id=30245059

comment 4y ago · link · parent

Why would it be strange to want the freedom to choose again when Apple is expanding the set of things that are covered by a 30% commission?[0]

Are you suggesting I should have illegally acquired information about Apple’s future business plans so that I could make informed choices as a consumer?

I certainly never agreed to their expansion of the commission, but what power does a consumer have over that now? That’s what monopoly power feels like, even if it may not meet the legal definition of “monopoly” that was set many decades ago before a smartphone was even imaginable.

Apple seems intent to expand their 30% commission to cover all aspects of daily life nowadays. I certainly didn’t know this years ago, and years ago when many consumers bought into iOS, the 30% commission was really just a commission on Angry Birds and similarly casual apps. It wasn’t impacting more serious parts of life, but now the smartphone is the place where the average person does some of the most important transactions in life. It’s a completely different situation from when the App Store first launched, and it should be treated as such. Do you recognize the validity of any of that?

[0]: https://www.nytimes.com/2020/07/28/technology/apple-app-stor...

comment 4y ago · link · parent

I’m talking about consumer choice. As a consumer, I can stop buying artwork from Etsy if their fees make the artwork more expensive than I’m willing to pay, and I can buy that same artwork from the same artist through other stores, if the artist agrees. But I can keep all the artwork I bought before. I don’t have to give it up to switch platforms. With Apple and the App Store, I do have to give up everything to switch to Android, which is completely a different proposition to switching away from Etsy. I’m locked into Apple’s platform, and Apple is abusing this to make prices exorbitantly high for me, the consumer.

If we want to talk about the developer perspective, then you’re making an even stronger argument that Apple has abused monopoly privilege and needs to be regulated as such. These iOS consumers aren’t reachable through other markets, only Apple’s. This is not the case for Etsy.

In both cases, the ability to choose is greatly reduced compared to other markets. The switching cost is high and requires a big sacrifice from the consumer, but then both Apple and Google have either directly or indirectly conspired to keep App Store prices at 30%, so switching between the platforms doesn’t even provide a real choice there at all.

comment 4y ago · link · parent

> The people pushing these regulations know that they would go nowhere if they tried to attack sales commissions directly and now the stupidity is bearing fruit.

That’s a very strong statement to lack any citation. The intent of the regulators was clear. If a Apple is going to be petulant, the regulators can just come back and tell Apple to lower their commission across the board, which will inevitably hurt Apple more than if Apple had been reasonable about this.

I don’t think it’s a foregone conclusion at all that the regulators are just going to give up and go home, crying about how Apple so cleverly outsmarted them.

> I'm absolutely in favor of regulations that make it so platforms can't skim percentage revenue off the top but any regulation that does that will attract the ire of literally every business that sells things.

When it comes to other businesses, consumers have choice. If one company charges too much of a premium, consumers can go elsewhere. If I go elsewhere from Apple, I lose access to all of my purchased items. If Apple would refund me every dollar I paid, then maybe that would be viable, but Apple wants to have their cake and eat it too.

Imagine if switching from Walmart to Safeway required you to give up every item you had ever purchased from Walmart. This is why Apple is not the same as most businesses charging a commission.

comment 4y ago · link · parent

43% more, in point of fact.

If an IAP is $15, then $4.5 of that goes to Apple. If you priced the direct payment option at $10.50, then $15 is 43% more expensive.

And this is the whole reason Apple doesn't want developers to be able to offer both IAPs and direct payment at the same time... it would make Apple look like the bad guy (a horrifying thought!), and they might feel pressured to lower their percentage to something more reasonable.

If Apple would switch to a usage based model more like AWS's where they charge for actual resource consumption (review requests, app store bandwidth, etc., maybe even with some kind of "free tier" to help very small developers who are still paying $99/year) then that would make more sense... but a 30% surcharge for every transaction is just absurd.

If credit card companies tried to charge 30%, the uproar would be so loud that no would be able to sleep for days, and you know businesses would instantly be offering steep discounts for people paying in cash. Apple has demonstrated that they want to eventually charge a 30% tax on all economic activity[0]... the App Store is more than just a place to download Angry Birds these days. Apple's 30% transaction fee is unsustainable. (I feel the same about Google's Play Store fees too, but at least Android allows sideloading and PWAs support push notifications there, giving developers and consumers some options.)

[0]: https://www.nytimes.com/2020/07/28/technology/apple-app-stor...

comment 4y ago · link · parent

> Especially in the Dutch case, where they won't actually lose any revenue, since they're charging 27% anyway.

I believe Apple is being forward-looking here. They know such a ridiculous 27% policy is unlikely to be tolerated by the regulators, since it defeats the entire purpose, so they're planning for a future where they're forced to lower that. They want the option to be presented to consumers as being scarier than it actually is and to include as much friction as legally possible, so that developers will be more likely to continue to use IAPs even when they could use something else.

I've heard that Apple isn't allowing consumers any choice in the matter either -- developers can't simultaneously offer both their own payment method and IAPs[0] (at upwards of a ~50% higher price, to cover the ~30% that would have to go to Apple for the IAP option, if the percentage for out-of-band payments ever drops from 27%). Certainly, it would "make Apple look bad" to see the IAP at a much higher price just because of Apple's commission.

[0]: https://news.ycombinator.com/user?id=huhtenberg

comment 4y ago · link · parent

> That's not about money

[citation needed]

It can be about more than one thing at the same time, but it certainly seems likely to be about the money. Apple wants people to use the App Store on their Mac more.

Those apps can be malicious too[0], but you don't see Apple warning you before you download or open them.

[0]: one of the first links on google, but this is not an isolated incident: https://appleinsider.com/articles/18/09/07/more-malicious-ap...

comment 4y ago · link · parent

At the point where you start typing in your payment information from scratch, you should have a pretty good idea that you're not in kansas anymore. Apple IAPs don't require you to enter your payment information again and again.

So, you are definitely informed one way or another, but requiring the developer to be more explicit about that would probably be good, but achieving that benefit doesn't require Apple to do... whatever this is that they're trying to force developers to do. It's a farcically extreme version of what could otherwise be interpreted to be a consumer friendly requirement.

comment 4y ago · link · parent

I think I understand what they're asking for. Consider a function that takes in a struct as one of the arguments.[0]

Currently, you would have to invoke it like so:

    svc.GetObjectWithContext(ctx, &s3.GetObjectInput{Bucket: bucket, Key: key})
But... why do you have to type "s3.GetObjectInput"? The function is taking in a concrete type (not an interface) for that argument, and there is only one possible type that you can pass in... so I agree with the person above that it should be possible to elide the type like so:

    svc.GetObjectWithContext(ctx, &{Bucket: bucket, Key: key})
Go already supports type elision in some places, such as...

    []someStruct{{Field: value}, {Field: value}}
instead of having to type

    []someStruct{someStruct{Field: value}, someStruct{Field: value}}
which would be equally pointless repetition.

[0]: https://docs.aws.amazon.com/sdk-for-go/api/service/s3/#S3.Ge...

comment 4y ago · link · parent

Source? That sounds like fun information to track.

comment 4y ago · link · parent

Apple could certainly do more to help people understand that they can install web apps to their home screen. Right now, it is an option that few users are aware of, buried in the menus as it is, and even fewer think about it.

When a related app is available in the App Store, Apple will show a big banner at the top of the web page encouraging you to install it... but they won't do anything for a PWA.

I think requiring "installation" of a PWA is a great way to balance the concerns people have about getting spammed with requests to spam you with notifications you don't want... but I also wish Apple would support PWAs better in general, so I can see it both ways.

comment 4y ago · link · parent

Apple CarPlay and Android Auto serve the same purpose these days, since they're effectively acting as an external monitor for your phone. The OEM doesn't have to keep anything up to date.

Just providing a "dumb" head unit with as close to zero features besides CarPlay and Android Auto would be sufficient to have a good user experience at this point, at least in the context of a "dumb car".

Last time I was on Android (~5 years ago), you could actually run Android Auto as an app on your phone, so a phone mount like that would be fine (even if not amazing), but Apple doesn't let you run CarPlay directly on your phone -- it only works with an external display designed for CarPlay, so a phone mount like this is notably worse for iPhone users. CarPlay's interface is much better designed for use in a vehicle than the regular iOS interface.

Phone mounts like that have the additional problem that smartphones have continued to grow and grow, and a lot of cars from 5 or 10 years ago that offer any kind of phone charging spot or phone mount can't fit most modern smartphones in the allocated spot... so phone mounts like that can become obsolete even without any electrical components whatsoever.

comment 4y ago · link · parent

This excuse doesn't hold much water anymore since the Pixel 6 is based on Google's own SoC, yet it also only offers 3 years of Android version updates.

Why can't Google do like Apple and offer many years of version updates? The iPhone 6s is still running the latest version of iOS.

comment 4y ago · link · parent

You’ve interpreted the numbers wrong. Yes, Linode, DigitalOcean, and most of this class of providers charge $0.01/GB. Almost literally an order of magnitude less than Azure or AWS. The megaclouds massively overcharge for bandwidth. It’s not even close.

AWS charges $0.09/GB, and Azure charges $0.0875/GB.

Maybe Troy Hunt gets a discount for being a Microsoft Regional Director and MVP. (Neither of which make him an employee of Microsoft, confusingly enough.)

https://docs.digitalocean.com/products/billing/bandwidth/

https://www.linode.com/docs/guides/network-transfer/

https://aws.amazon.com/ec2/pricing/on-demand/

https://azure.microsoft.com/en-us/pricing/details/bandwidth/

comment 4y ago · link · parent

If you really want to support Kafka, I think there are options. Besides the obvious option of forking the .NET client to add these missing features, you could also write some kind of "plug-in" in Java or Go or some other language with a fully featured client library, and communicate with it over some type of local RPC from your main application to query against Kafka. Whether it is technically feasible or not, it may not make business sense for you, which is fine, just interesting to think about the options.

I'm slightly surprised that the .NET client isn't fully featured, but I've never tried to use Kafka from a .NET language before.

comment 4y ago · link · parent

"Only show available" doesn't seem to work except on the homepage... but I think it's because the homepage is the only place where any domains are actually marked as already being registered. (when most of the suggested domains on search results seem to be registered already, based on a quick sampling.)

On the same line of thought, it would be awesome (but probably difficult/expensive) if you could show the price of each domain directly in the results.

Otherwise, it seems like a neat tool!

1
444546
66