HNHacker News
TopNewBestAskShowJobs

aloknnikhil

2,165 karma · joined December 10, 2017

[ my public key: https://keybase.io/aloknnikhil; my proof: https://keybase.io/aloknnikhil/sigs/5AIGcEerWBXOA_oaa_WAEmF-oiy1BOr7I6CdG5Hf5Wc ]
submissionscomments
aloknnikhil··on Hosting your entire web application using S3 and CloudFront
Or Cloudflare workers KV. https://workers.cloudflare.com/
aloknnikhil··on Tell HN: 6.3% of HN top submissions in plain HTTP, more than half upgradable
Or the owner can set up an http redirect to https. It's a win-win. curl happily works with that when you ask it to follow redirects. 'curl -L ...'
aloknnikhil··on Tell HN: 6.3% of HN top submissions in plain HTTP, more than half upgradable
https://www.troyhunt.com/heres-why-your-static-website-needs...

- MITM attacks - Ad/message injection - Malware injection - Censorship

> Furthermore, because it is self hosted there are several physical machines at different locations which serve as backups and are selected by updating the DNS records, which I believe is incompatible with a basic lets encrypt system.

Sure. But it's not that much more harder to do it. Use something like the caddy server and have it manage certificate deployment for you.

Unless there's a client that you intend to serve that absolutely cannot handle SSL/TLS, I cannot see a reason why you'd want to stick with HTTP. And no, I don't consider IE6 as a valid excuse. You can always use an older version of Firefox on Windows 2k and it'll solve this problem. I honestly don't think I can trade all the above for more compatibility with ancient machines.

> but I am solidly in the camp that if you believe your ISP is attacking you you need to use a VPN for all of your traffic, because injecting ads is the least of your worries at that point.

I don't understand this. If your resistance to switch is to make it easy for anyone with any browser to use your web page, then expecting them to use a VPN because they have a terrible ISP because you refuse to use HTTPS makes their life more difficult. Surely, they don't see this problem with other websites that use HTTPS but now need to go get a VPN service just to use yours. Also, we're assuming VPNs are absolute saints here. Not really true. But even if it were true, a VPN is eventually someone else's ISP. You're hoping nothing and absolutely nothing in the routing topology will ever look at your data or bother to inject into it.

aloknnikhil··on Microsoft’s new x86 DataCenter class machines running Windows (2018)
From one of the comments on the article

> I think Intel / Microsoft have found a way to interconnects scalable and this comes interesting thought on value of have more cores on cpu. Especially if system was designed to be pluggable and if one of cpu's failed than it does not bring entire system down.

I think this is an interesting point. If the QPI links on the Xeon Platinum is restricted to 3, I wonder what the 32 socket mesh looks like and what implications that has on availability of the system as a whole if one CPU was to fail. Also, unless these are fully NUMA aware workloads or each socket was dedicated to a VM, the latency has to be terrible for memory access especially if the interconnect is multiple hops away. Clearly it's not going to be a fully connected mesh?

aloknnikhil··on Microsoft’s new x86 DataCenter class machines running Windows (2018)
This is from 2018. Can we add that to the title?
aloknnikhil··on 400 TB Storage Drives in Our Future: Fujifilm
If you use a Mac, you can create an encrypted HFS disk overlaid on top of another filesystem that TimeMachine can then back up to. Depending on the size of the disk and frequency of the backup, you can keep snapshots that are as long as a year old. You can then take nightly backups of the disk (which is literally just a folder) and store it on a cloud provider or any remote storage. I've been doing this for the past year or so and it's been flawless.
aloknnikhil··on Chromium and Mozilla to enforce 1 year validity for TLS certificates
I can understand this can cause pain for existing deployments, but I don't see any reason not to use something like Let's Encrypt to issue 90-day certificates for new services/deployments. With certbot, renewals are automatic and with something like Caddy, the certificates can be managed across load balancers. I'm only talking about the web service here and not IoT or any use case that makes this sort of frequent renewals difficult.
aloknnikhil··on Chromium and Mozilla to enforce 1 year validity for TLS certificates
Let's Encrypt doesn't offer anything longer than 90 days.

https://letsencrypt.org/2015/11/09/why-90-days.html

aloknnikhil··on Curl Wttr.in
I actually stick to regular formatting on HN because of how terribly code formatting on HN renders on a phone. It doesn't wrap around when you format it as code and I have to scroll horizontally since the width is fixed. But it's probably OK for something like this code snippet.
aloknnikhil··on Zsh and Fish’s simple but clever trick for highlighting missing linefeeds
And also one of those things you stumble upon rather than think of on your own, I guess.
aloknnikhil··on Show HN: Neuropod – Uber ATG's open source deep learning inference engine
Found it interesting that most of the commits are under 1 contributor (OP). Are you the most active contributor or was this an artifact of open-sourcing it? Just wondering if you get hit by a bus tomorrow, what would we do? :)

Thanks for this, btw!

aloknnikhil··on Show HN: Go Micro – A distributed systems development framework
Agreed. I'm not saying that this needs to be integrated w/ k8s. I'm merely comparing it to k8s which promises the same abstraction albeit declaratively. The biggest plus point, IMO, for k8s is it makes managing deployments across physical hosts easy. So, I was asking if there was anything equivalent in micro that would help manage my deployments. And your comment on client side discovery and Load balancing partly addresses my original question. My main point here being, I don't see anything in the linked doc on why I'd choose micro over existing frameworks.

EDIT: https://github.com/micro/micro/blob/master/README.md

This page is more informative on why Micro over anything else. So I think this answers my second question.

aloknnikhil··on Show HN: Go Micro – A distributed systems development framework
> Service Discovery - Automatic service registration and name resolution. Service discovery is at the core of micro service development. When service A needs to speak to service B it needs the location of that service. The default discovery mechanism is multicast DNS (mdns), a zeroconf system.

> Load Balancing - Client side load balancing built on service discovery. Once we have the addresses of any number of instances of a service we now need a way to decide which node to route to. We use random hashed load balancing to provide even distribution across the services and retry a different node if there’s a problem.

Trying to understand this a bit here. Is micro a replacement for k8s? Because I don't see any deployment capabilities here. So I'm assuming it's complementary to that. If that's the case, then I'm not sure how service discovery and load balancing would co-exist with the CNI in k8s.

aloknnikhil··on Show HN: Go Micro – A distributed systems development framework
Previous discussion: https://news.ycombinator.com/item?id=21878659
aloknnikhil··on Chromium project finds that 70% of security defects are memory safety problems
In addition to the isocpp guidelines, using the Address/Undefined Behavior Sanitizer goes a long way.
aloknnikhil··on Magic Leap has apparently raised another $350M
> Whatever the case, the company is withdrawing the WARN notice (a 60-day notification for large-scale layoffs) sent to staff in late April. The move represents an apparent reversal of the massive layoff round it previously announced.

What does that mean exactly? Were the people laid off given their jobs back? What does "withdrawing" a WARN notice even mean?

aloknnikhil··on The most advanced jail-break tool. Coming soon to all devices on iOS 13.5
This includes the iPhone Xs and 11 (and presumably all A12 and A13 devices). Was there a new exploit found on these chips? Last I checked only devices with chips older than the A12 were vulnerable to the checkra1n exploit.
aloknnikhil··on Zoom allowed a sign-up without verifying their email
I posted this here solely to raise awareness. Definitely not to shame Zoom.
aloknnikhil··on If I could bring one thing back to the internet it would be blogs
Honestly, the only thing I really like about Twitter is Moments. They aggregate the current trend from various tweets and compile a good enough summary to get you upto speed. But this is so deeply buried in the UI, it's a shame.
aloknnikhil··on Gearbox – A web framework written in Go
Code comments like these frustrate me

> // constructRoutingTree constructs routing tree according to provided routes

> // gearbox implements Gearbox interface

> // New creates a new instance of gearbox

It's obvious from the names of the functions WHAT they do. The point of the comments are to tell me WHY they are necessary. The project feels like commenting for the sake of commenting. I honestly don't know why a "routing tree" is necessary and how it's helping.

aloknnikhil··on How to sell a B2B product
Thanks for sharing this. For me, this was the biggest takeaway.

> In every case, a viable option for the customer will be to “do nothing”. They don’t have to buy your product, or any product for that matter. The best way to prove the case for your product is with your metrics. Doing nothing should be a very expensive option.

That fundamentally speaks for having a problem to solve and not a solution looking for a problem. I think this key distinction is a good sieve to filter out potential ideas especially if you're in the business of SaaS.

aloknnikhil··on HSE: Heterogeneous-memory storage engine designed for SSDs
> https://github.com/hse-project/hse

Their benchmarks show significant gains compared to RocksDB.

> https://github.com/spdk/rocksdb

But what I'd really like to see is a comparison against RocksDB using SPDK

> https://dqtibwqq6s6ux.cloudfront.net/download/papers/Hitachi... Based on these results, SPDK performs significantly better than the kernel requiring only 1-2 cores to saturate IOPS on an NVMe SSD (compared to the kernel requiring 16)

aloknnikhil··on A-Shell: Terminal for iOS
Seems like both use this framework to generate the landing page

https://github.com/emilbaehr/automatic-app-landing-page

aloknnikhil··on Disabling Snaps in Ubuntu 20.04
Thanks for this. I followed the steps and it failed to unmount the current "core" mount for snapd because the target was busy. What helped me was to unmount it lazily by running 'sudo umount -l /snap/core/xxxx' and then purging the package. That helped things move along. Just in case someone runs into this issue.
aloknnikhil··on I can't keep up with idiomatic Rust
Pre-C++11 was. Modern C++ not so much. Things have drastically improved and dare I say, it's more appropriate to call C++11 and greater C++ v2. That said the tooling around build/test/dependency management/versioning leave much to be desired for. But a combination of meson (for build), Catch (for test) and CMake for dependency management can go a long way.
aloknnikhil··on Apple Faceshield
I was hoping they would stamp the Apple Care logo on these. Kudos to Apple for shipping these out so quickly at such scale.
aloknnikhil··on Language Design: Use [ ] instead of < > for Generics
Right. The difference being the "."

The article proposes using basic function call syntax. That makes no sense to me. And with .(), you now have 3 characters to type instead of 2 with []. Obviously all of this is pedantic, but then again so is the article.

aloknnikhil··on Language Design: Use [ ] instead of < > for Generics
Exactly. Array indexing with [] feels ok to me.

> someList(0) /* instead of */ someList[0]

This is worse. How do you disambiguate that from a function call? It's now just abusing ()

aloknnikhil··on Eclipse Dirigible 4.4: Cloud Development Platform
The first thing I noticed is how similar the interface is to VS Code. Is this some Frankensteined version of Code? If so, then a lot of the extensions from the marketplace should be compatible.
aloknnikhil··on Researchers say MS Edge's telemetry has worst privacy of any major browser
Follow-up : Was on a group call today on WhatsApp. All packets were being routed through Facebook. So, group calls are indeed not E2E.
← PreviousPage 4 of 10Next →