Better HN
topnewbestaskshowjobs
Log inSign up

qbasic_forever

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

Submissions

comment 4y ago · link · parent

> When you say “we”, who do you mean exactly? How did they cook them?

The entire population of the western world. Every time COVID-19 infects a person and replicates it has the chance to mutate or introduce errors. If those errors in replication increase the fitness of the virus it will evolve to become a more powerful variant (i.e. gain of function). By continuing to allow hundreds of thousands of new cases and infections to occur daily we are increasing the chance of variants evolving. The _only_ way to stop variants is to stop transmission, period.

> Can you explain why you believe the pandemic is not over?

We are still averaging over 100k new cases a day in the US. And that's with almost all of the population using rapid tests that aren't counted in that measurement.

comment 4y ago · link · parent

No, we literally just need to mandate N95 masks in public settings and get the effective R value down near 1 again. Contact tracing and government support for paid sick leave, etc. would control it even further. At no point do harsh lockdowns have to happen.

comment 4y ago · link · parent

Whatever toy gain of function research someone is doing in a lab vastly pales in comparison to the enormous gain of function 'experiment' we are right now performing worldwide with the continued high transmission rate of COVID-19.

Look at what variants like Omicron BA.5 and BA.4 have evolved into, they are quite possibly the most infectious and dangerous air spread pathogens known to man. These didn't come from a lab, we cooked them up by dropping all mitigations and pretending the pandemic was over instead of quashing this virus for good.

comment 4y ago · link · parent

You realize COVID-19 is the second major SARS coronavirus outbreak the world has seen, right?

Much of the research on the spike protein for COVID-19 came directly from SARS 1 research a decade ago. The fact we were able to have vaccines ready in 12 months is because of this research on SARS 1 and the spike protein.

comment 4y ago · link · parent

Unikernel is what you're interested in, but it's not as easy as taking some Linux-based server software and spitting out a bootable image for baremetal. If you strip the kernel and OS out you lose the network stack and all kinds of system services that most software depends on directly.

I think Google's distroless container images are worth checking out as a quasi-alternative: https://github.com/GoogleContainerTools/distroless You use them as a base for a docker image and copy in your server code. These images are tailor made to strip out _everything_ that's not necessary to run the software--there's no shell for example. So you're still running a Linux kernel, libc, etc. but there's nothing there for an attacker to use other than your app code. You yourself can't even get into a shell to debug or examine what the state of your app is (which can actually be kind of aggravating in development).

comment 4y ago · link · parent

At some level docker has to do this because it creates an abstraction that your containers are their own little devices with their own IP address. For your host machine to talk to them and vice/versa it has to be able to route traffic to them. I don't think docker flips on routing globally for all interfaces though.

comment 4y ago · link · parent

Yep it's a good call out. Another good habit that you allude to is to publish ports to both an interface and port on the host system, not just a port (which assumes all interfaces, including external ones like wifi). The syntax slightly changes so you do command line option '-p "127.0.0.1:5000:5000"' which means on my host machine's localhost only (127.0.0.1) listen on port 5000 and forward it to port 5000 in the container. That way only a process running on my local machine can connect to my container and not someone else on the network if I forgot to turn on a firewall.

comment 4y ago · link · parent

Docker creates its own iptables rules when its daemon runs, so unfortunately whatever firewall you setup will be ignored by exceptions it creates.

comment 4y ago · link · parent

> So every time you sit down in an internet cafe and connecting to the wifi, you are fucked because all the docker containers that run on your machine are open to everybody?

Yes, if you're running docker on Linux. On Mac and Windows docker has to create a little linux VM so it's more isolated and not directly accessible without explicitly publishing ports.

comment 4y ago · link · parent

C++ _easily_ has many if not more quriks than JS. There have been over a half dozen major revisions of the language since ~1988. Each one added in sometimes dramatic ways new syntax or idioms that required major relearning. If you learned and used C++ in 1995 you would be a liability if thrown into a modern 2015+ C++ codebase (well a liability until you learn all the new quirks and changes in the language).

You might drop into a C++ codebase from 1990 that looks more like C (it was made to be mostly backwards compatible after all), then see a codebase from 1999 that's chock full of the most cryptic template metaprogramming imagingable and complete spaghetti structure of OO "design patterns", and then see a codebase from 2010 making much more heavy use of the updated standard library and a functional style of programming.

The sheer scope of C++ as a language is frightening as it requires quite deep knowledge of the parts you're using. Sometimes even deep knowledge of the history and rationale for parts of the language you're using existing. And if you screw something up you might silently introduce a major security hole, OS crash, or worse--the language gives you a ton of rope to hang yourself from.

Oh and there's no standard build system, no standard package manager, no standard project layout, no standard for code formatting, documentation, etc. Everyone has their own bespoke solutions that make the JS world look amazing in contrast.

comment 4y ago · link · parent

It was a failed o-ring from launching in too cold of temperatures that caused the Challenger disaster though, not a failure of the rocket fuel. The engineers that understood the danger to the o-rings objected to the launch and would not sign off on it, but they were overruled by NASA's broken management culture at the time and the rest is history. There was a thorough investigation and it placed the blame squarely on NASA management for the root cause of launching under conditions that were dangerous to the shuttle design.

comment 4y ago · link · parent

K8s doesn't reinvent anything. It uses DNS for service discovery, just like you describe. It happily opens ports for ingress if you'd like (or it talks to your cloud provider load balancer to do the same). K8s is literally just a few go-based API endpoints that orchestrate all kinds of existing things like DNS, container scheduling, etc.

What K8s does is provide a simple and idiomatic rest API on top of all this architecture. No longer do you have to read a ton of disparate man pages, figure out what the sysadmin 10 years ago did for DNS, etc.. you just use kubectl or the API. It's the same interface to spin up more replicas of a frontend service as it is to open a port for ingress or even collect and review logs.

comment 4y ago · link · parent

Do you have an example of when systemd is not used for good?

comment 4y ago · link · parent

It does, every pod, service, etc. in the cluster has a fully qualified DNS name resolved by a DNS server in the cluster.

comment 4y ago · link · parent

If you don't use k8s and just run bespoke containers you still have to figure out how those containers find and talk to each other. Maybe you run some custom DNS setup, maybe you run a purpose built service discovery thing like consul, etc. And you have to figure out how you'll do networking to support public/internet-facing workloads vs. private internal services (and how each can talk to the other).

But... if you just use k8s you get things like basic service discovery, networking, ingress, etc. with it and don't have to figure out bespoke solutions (that you'll just chuck anyways once you move to k8s).

I do agree though I would be very hesitant to immediately dive in running stateful workloads like databases, etc. on my own k8s cluster. The cloud hosted database services that every provider has is such a significant time and complexity saver, especially if your databases are just getting started and small-ish.

comment 4y ago · link · parent

There's a good PBS documentary series on all the modern presidents and it's worth a watch if you haven't seen it already. The Carter episode dug into how he was technically well qualified and capable, but just did not have the connections and support of Congress at the time and that ultimately doomed his administration to failure. None of his ideas were able to get funding or support in Congress so his administration just flailed.

comment 4y ago · link · parent

The chairman of the fed is explicitly saying they will increase interest rates until inflation is down to 2%, even if that increases unemployment and creates a recession. Crypto collapsing won't be the cause of a recession.

comment 4y ago · link · parent

You won't find a manual transmission in any electric car, for better or worse. At best they would make some fake lever in the console that just tells the ECU 'hrm it looks like the driver wants more torque right now, and maybe play some engine rev noises on the stereo'.

comment 4y ago · link · parent

Honestly I would go get some gaming PC bling (RGB lights etc) and build a 'fake' server room that's just for marketing or show, but not actually used for anything serious. Whatever makes the silly boss/owner that made the demand happy.

At the same time aggressively build out cheaper cloud or proper on-prem server hosting room. Because ultimately what is the lowest cost to run will be pretty boring with high density racks and absolute minimum of power sucking junk like extra lights, etc. I'd be far more concerned about physical security, fire suppression, backup power and cooling than bling factor for a real on-prem datacenter.

comment 4y ago · link · parent

You kind of have to experience the worst of boths worlds to understand where and how each method works and breaks down.

With multiple repos it's harder for teams to share code and collaborate. Each team has a repo that becomes a little fiefdom where they are oblivious to who is using their code and how they're using it. Suddenly they'll push out what they think is an innocuous refactor and inadvertently break core functionality other teams took a dependency on for better or worse.

So what happens is the team with a dependency now copies the old code into their repo and take on all the extra burden of maintaining this old version, trying to backport fixes, etc. It becomes an enormous mess and time sink. No one ever has time to go back and fix things, and when they eventually are forced to do so it costs more time and effort than it would have taken to do it right from the start. You'll also run into horrible versioning problems where you're stuck on old version X but depend on widget foo which needs current version Y of that dependency.

You might say well bad on that team they should have engaged the product managers, made sure their dependencies and usage were well tracked with them, been looped in the process of changes, etc... but in the real world when your boss says X feature needs to be shipped in a few days all of that process goes out the window.

comment 4y ago · link · parent

Then nothing changes in your fantastical scenario that I find a $1B painting in my attic and sit on it.

What we're talking about here is when people like Jeff Bezos have billions of dollars of income--direct income from gains realized in asset sales, income generated from property, stock sales, salaries, etc.--we shave a significant portion of those gains off in a wealth tax.

comment 4y ago · link · parent

Then lobby to change the tax laws, just like folks are lobbying to add billionaire taxes. The billionaire tax has nothing to do with the rich having ways of hiding wealth or income, deferring losses, etc. to reduce their tax burden. You're making an argument that obfuscates and obscures the real argument here that billionaires should not exist as they serve no utility in a society besides absorbing resources.

comment 4y ago · link · parent

We already have this issue for our existing tax system. You have to declare your income and use a huge set of tax rules and laws to determine your AGI and appropriate tax bracket. Taxing billionaires changes nothing here other than deciding once your AGI has enough zeros you get more taxes applied.

comment 4y ago · link · parent

We already have a tiered system of taxes in the US. We don't tax everyone 50% because the average US wage is 100x that of a third world country average wage. It's possible to examine only the US wealth distribution and make choices about taxing the highest of the high earners there in isolation of all other earners in the world.

comment 4y ago · link · parent

You can put a wealth tax on billionaires without putting taxes on poverty level workers ($500/month in the US).

You're making bizarre nonsensical arguments here--slippery slope, strawman, etc.

comment 4y ago · link · parent

I think workers should organize and bargain collectively with their employer on their working conditions and policies for layoffs.

comment 4y ago · link · parent

Yeah the GBA uses an older ARM processor and is really well supported by GCC and modern compiler toolchains. Heck you can even write Go and run it with TinyGo targeting the GBA: https://tinygo.org/docs/reference/microcontrollers/gameboy-a...

Plain old C/C++ is really well supported for hobbyist development though: https://github.com/gbadev-org/awesome-gbadev

comment 4y ago · link · parent

The first few generations of DS were fully backwards compatible with the GBA though so the transition wasn't that bad. The Gameboy in general had an amazing run of backwards compatibility through its lifetime. The GBA could play original Gameboy games going back all the way to 1989.

The one annoyance of the GBA at its release and original lifetime was the screen. It wasn't backlit and was very difficult to see without perfect bright lighting in your room. They eventually fixed this with the backlit GBA SP some years later, but gaming on the original GBA was rough. It's easy to forget just how bad things were without backlit screens, we've been spoiled by decades of amazing smartphone screens in the years since.

comment 4y ago · link · parent

> Next trick...turn a Tesla into a musical instrument via the motor drives.

Renault did it some years ago to demonstrate how much control they have on their F1 engine drivetrain: https://www.youtube.com/watch?v=XRXwWbo_mX0

comment 4y ago · link · parent

I love that the pendulum is swinging back to file-based routing. It reminds me a lot of the simplicity of cgi and php scripts. I'm sure there's a point where it explodes into a monster of complexity with enormous sites, but for everything smaller it's so much simpler and easier.
1
414243
84