Better HN
topnewbestaskshowjobs
Log inSign up

qbasic_forever

10,505 karma · joined Feb 3, 2021 (5y ago) · 2,505 submissions

Submissions

comment 5y ago · link · parent

Deleting my Facebook account has been one of the most mentally liberating and satisfying decision I have made in the last year. I used a Chrome addon to totally delete every post and clear everything out too--why let them have anything even when I'm gone.

comment 5y ago · link · parent

For the cache: https://docs.bazel.build/versions/master/remote-caching.html and https://github.com/buchgr/bazel-remote You can actually just set it up to use a shared S3 bucket to hold the cache.

For builds there are a few options to check out: https://github.com/jin/awesome-bazel#remote-caching-and-exec...

comment 5y ago · link · parent

Distributed builds, and even distributed cache of build outputs. At google scale a distributed cache means you don't even need to build anything except the smallest code unit that changed--your CI systems, etc. have already built and warmed the cache for almost any other thing you want to build.

comment 5y ago · link · parent

Refreshing in the sense that it's a look back at what worked and what maybe didn't work so other projects don't make the same mistake. They could have just flipped the code repo to "archived" and moved on without a word.

comment 5y ago · link · parent

It's refreshing to see an honest and critical evaluation of things. This kind of decision should be celebrated and encouraged with all projects.

comment 5y ago · link · parent

Gitea isn't too bad to hack on, it's just Go and Go templates for the HTML pages. I haven't dug in much to see what their API looks like but I assume it's not too wild or radically different from any other Go web project and easy to change as necessary: https://github.com/go-gitea/gitea

comment 5y ago · link · parent

I don't think Github or Gitlab have serious SLAs unless you're an enterprise customer. Don't stake the future of your project or code on the backup and management of a service you pay no money to use. Keep at least your own local clones and offsite backups. The 3-2-1 rule still applies if it's data you care about.

comment 5y ago · link · parent

Another good option if you need to start moving your repos to other machines or want to back them up is using rsync.net. They added git support many years ago and it's just like setting up a bare repo on a remote SSH host but all managed by rsync.net: https://blog.kozubik.com/john_kozubik/2010/02/git-and-subver... Once your repos are there then accessing them from anywhere is just a git-ssh clone away, just like a private github repo.

comment 5y ago · link · parent

Very much a social network. Look at your profile/activity feed and how it gamifies contributions with the activity chart (the more you do across github, the more it lights up). Github project stars are just the same as FB likes. Or how they prominently put fork buttons on every repo that immediately clone and copy a fork of the project to your repo. Or that github has an entirely new inbox of messages and issue replies to deal with (and all the issues of potential harassment, etc. that come with that honestly).

comment 5y ago · link · parent

On the contrary I think "source control with a nice web UI and no social network" is a category of product that a definite part of the market wants. Look at projects that choose to be "open source, but not open contribution" like SQLite--they don't want a free-for-all drive-by pull request community. They want a way to publish code for all to see and consume, yet be maintained entirely by a single or core set of contributors.

comment 5y ago · link · parent

Yeah I saw a recent study that showed in monkeys the T cell response didn't really matter or do much for COVID-19. They looked at monkeys which had an illness that depleted their T cells and compared to healthy monkeys to see how an infection of COVID-19 went and saw surprisingly the T-cell depleted monkeys weren't much worse off. This is somewhat of a surprise since it was assumed T cells would be an effective way to neutralize COVID-19. Ultimately it just shows there are many more mysteries to this virus than solid answers. Preprint here: https://www.biorxiv.org/content/10.1101/2021.04.02.438262v1

comment 5y ago · link · parent

Sterilizing immunity is the term you're looking for, and as far as I know the vaccines are still being studied to determine if it happens. It's very difficult to determine right now because you need to very carefully control a studied person AND all of their contacts and people they interact with--you test all of those people daily and then can tell if people in the vaccine or placebo group have close contacts coming down with sickness more or less often (hinting at the presence or not of sterilizing immunity). The big trials for EUA of the major vaccines declined to do this kind of study because it takes longer and costs a LOT more to do that much testing across 60k people + all their contacts.

It will also be more challenging going forward to do these kinds of studies because of the ethics. It will be hard to ethically justify keeping an arm of a trial unvaccinated as a placebo in the face of a very serious and very deadly virus which we have known good vaccines. There are some interesting things like crossover trials that apparently more of the current in research vaccines are trying.

comment 5y ago · link · parent

Is this study really just telling us that 90% of adults have had a cold in the recent past?

edit: Not implying SAR COV-2 is "a cold". I'm implying it's a coronavirus also like the common cold, hence an antibody study would have to be careful to select for the right one.

comment 5y ago · link · parent

Make a living off it? Write the app in a framework that lets you one click compile and build for Android and iOS too. That's the truth.

comment 5y ago · link · parent

The typesetting is better because PDF documents don't have to flow and resize across screens. This means a post-processing step can tweak hypenation, letter spacing, etc. to give the whole document a pleasing look. On the web it's a lot more difficult, but not impossible, to do the same and work on every possible size screen. There's also growing work to make typesetting style hyphenation and such work in browsers in the near future: https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens

comment 5y ago · link · parent

I think it's more complex than that, bazel (and its predecessor blaze) were created to make monorepo development at google scale work. They use bazel/blaze not because it works better or more easily for Android, they use it because their entire engineering culture depends on an enormous monorepo of sharing code and rapid changes across the company codebase. There are some great papers they've written about bazel that go into these issues and more.

comment 5y ago · link · parent

Nope you can make a simple pod definition and not worry about a deployment. For a local cluster you'll just have one node and everything is effectively a statefulset. IMHO it's easier to write k8s yaml, there's tons of tooling, clear schemas, etc. You could even script calling the API server directly.

comment 5y ago · link · parent

Grab the ansible-runner image from dockerhub and it's a great slimmed down image to run ansible: https://ansible-runner.readthedocs.io/en/stable/container.ht...

To provision stuff _inside_ your docker container from ansible I've found packer is the easiest way to do it: https://www.packer.io/docs/provisioners/ansible-local There was apparently a tool called ansible-bender that did something similar but was abandoned. Packer makes it easy to define a container that's provisioned with a local ansible playbook.

Ultimately though I think using ansible with containers is a code smell. If you provision in a container with ansible you have to pull in an entire Python install, and that blows up your container size fast. You can do multi-stage builds and carefully extract the stuff you need but it's a real pain. IMHO minimal shell scripts that run in very tightly defined and controlled environments of the dockerfile (i.e. they don't have to be super flexible or support any and every system, just this container) are the way to go.

comment 5y ago · link · parent

IIRC there are some mount options that might help if you search the docker docs, but for me I just create some local docker volumes to hold my code and mount those instead of mounting host folders. It feels a little weird and unnatural that your code is 'hidden' in docker's volume folder (under /var/lib/docker/volumes) in the VM instead of in a folder on your host machine. But it gets you into more of a mindset that this is just a temporary checkout and the real persistent home for the code is your source repository (github, etc.), so you don't let things linger without being checked into a branch somewhere.

comment 5y ago · link · parent

Go the next step and run a local kubernetes cluster with kind or k3s (it will take you 30 seconds to have a k8s cluster going). IMHO the kubectl CLI is a lot more logical than docker's CLI. You can create all your local storage volumes ahead of time, create a pod that attaches to it, and then just kubectl exec into the pod vs. writing a long fiddly docker command line string (or crafting a docker-compose.yml). It's easy to adjust the pod as necessary while it runs too, like adding a service to expose ports without rerunning the container.

But if you do like the idea of docker dev environemnts, check out a tool like batect: https://github.com/batect/batect It's somewhat like if docker-compose had make-like commands you could define. Your whole dev environment and workflow can be defined in a simple yaml config that anyone can use.

comment 5y ago · link · parent

> multi-touch was what got the the smartphone revolution going

Massive citation needed. When I bought the first iPod touch (at the time it was a gen 1 iPhone without the GSM modem) it was because it had a real web browser and not the BS 'mobile' browsers on my Windows Mobile smartphone. I could actually visit a store's website and find their hours, check if an item was in stock, etc. There wasn't even an app store back then... IIRC multitouch was only used for zooming into photos in the photos app.

comment 5y ago · link · parent

Ahh interesting point. Somebody needs to make their next 20% project a gmail labs extension that gives a simple annotate option to images in mail. It would probably be a sleeper hit that gets more use than 90% of other gmail features.

comment 5y ago · link · parent

To this day I have still never found any application on any device that is as simple and easy to add an arrow and some red text to an image for highlighting something as it is with preview. It is just unbelievable how janky and bad every single other application is at doing this simple task. Not even on phones is there anything easy.

comment 5y ago · link · parent

Wow this looks really slick! After ramping up and using Bazel for a bit I'm totally sold on starlark too--it's a breath of fresh air to just use (mostly) python to write all the configuration and infrastructure code. I'm kind of sick of learning some new bespoke, pet language dreamed up to scratch an itch and such--let's just use python and move on to more important things.

My only real gripe with starlark is that the import story is still a bit ugly and unweildly--you have to specify every explicit global function or variable you use, there's no * imports yet. But it's kind of a minor issue in the grand scheme of things.

comment 5y ago · link · parent

This and other JS CLI libraries are typically used by JS projects that have tooling. Like when create-react-app scaffolds a project and asks you questions to customize it, etc. it's using libraries like this one. For a JS project it's just an easy npm install away as a dependency, and you know your users will have nodejs anyways.

Speed rarely matters for imperative user-facing tools. You're going to be waiting for a user to type and respond far, far longer than making some system calls to write to the shell.

Ink is a more interesting and maintained library to consider though: https://github.com/vadimdemedes/ink It lets you write react-like apps that output to the terminal instead of HTML.

comment 5y ago · link · parent

Yikes! That's not a good failure mode at all.

comment 5y ago · link · parent

Ahh, there's the real reason. So why do the VCs want fiat and not crypto returns?

comment 5y ago · link · parent

Pedantic point.

Question remains...

comment 5y ago · link · parent

Honest question, why is Coinbase listing on the NASDAQ (edit: tangentially also NYSE)? If their whole business model is predicated on the success of crypto-currency shouldn't the whole world of fiat currency be completely irrelevant and a distraction?

comment 5y ago · link · parent

Modern semiconductors were invented in America, literally why we call it Silicon Valley. We used to have the best fabs in the world but 80's and 90's corporate American business culture decided it was better to shut down all that manufacturing and move it overseas for more short-term profit. They're now coming to the hard realization that maybe that was a massive mistake.
1
737475
84