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

Yes, the reality is all those weird architectures stopped being developed and actively supported 20 years ago. If someone wants to get some old Itaniums and Alphas and such together to hack in support, go wild and have fun. But the reality is the venn diagram interesection of people knowledgeable enough to create a LLVM backend, people motivated to support vintage architectures, and people that actually have the hardware available and ready to test is basically zero. If people in the community are passionate about it happening then organize and make it a reality.

comment 5y ago · link · parent

No need to build it, there's already kubecfg: https://github.com/bitnami/kubecfg

comment 5y ago · link · parent

Helm isn't that connected to the broader Kubernetes system. It was popular in the early days when Kubernetes knowledge was sparse and things were still being figured out. None of the official Kubernetes docs really mention or describe using helm, and I see more getting started tutorials are starting to avoid it too. The official kubectl tool supports a -k mode which applies Kustomize logic and I'd argue Kustomize is probably the official way forward with app deployments by the Kubernetes project.

comment 5y ago · link · parent

Pick up any cheap $30 pre-paid Android smartphone at Walmart. Install Termux (while you still can). Use a nice keyboard for coding like Codeboard: https://play.google.com/store/apps/details?id=com.gazlaws.co... Or add a simple bluetooth keyboard to pair with it.

comment 5y ago · link · parent

CapRover is a nice Docker-based PaaS you can run yourself: https://caprover.com/

comment 5y ago · link · parent

It's really only in the last couple years that kubernetes has started to get tamed and be more approachable. For the longest time the only way to get a simple dev cluster up on your laptop was to make a VM with like 8-16GB of RAM and four cores dedicated to it--it was pretty outrageous. Nowadays kind, k3s, etc. make it a simple one line install and sip resources. But I agree, there is definitely a misperception that k8s is too complex.

comment 5y ago · link · parent

In my experience, no. I would really love for it to be a thing as it's perfect for sharing devices on your computer to containers or VMs (i.e. program and debug your ARM MCU with a complex embedded toolchain and programmer running in a simple docker container). But in my experience USB over IP is still kind of a "here's a bunch of kernel modules and not a lot of documentation; good luck on windows" stage.

comment 5y ago · link · parent

Check our SDR, you can have access to anything in the physical layer with ease these days. Like here's a fancy SDR system running as a wifi AP: https://www.rtl-sdr.com/bladerf-wiphy-open-source-wifi-acces... You'll need a proper FCC license to do much transmitting of anything on non-standard frequencies though.

comment 5y ago · link · parent

Advertisers would hate that kind of model. They want perfectly targeted and customized ads for each individual viewer. Baking the ads into the content or page itself would be going back about 20 years in their world.

comment 5y ago · link · parent

Figma: https://www.figma.com/

It's a design tool that runs entirely in your browser as a WebAssembly-based frontend tool (coded in C++ IIRC). Go kick the tires and play around with it--you will be amazed how fast, fluid and downright native the experience feels.

IMHO I think we're going to see more and more frontend experiences like this in the near future. For certain classes of complex apps we're starting to see the overhead of all the frontend JS cruft, polyfills, reactivity, etc. are just getting out of hand and destroying browsers on low-spec phones and machines. A little Go/C++/Rust/AssemblyScript, etc. app compiled to WebAssembly interacting with the DOM directly is incredibly fast and space efficient. The build system for something like Go or Rust is so much more sane and easy to use vs. a complex modern JS Webpack setup too.

edit: More details here: https://www.figma.com/blog/webassembly-cut-figmas-load-time-...

comment 5y ago · link · parent

Dive into the JAMstack and file-based CMS world. Netlify is kinda the big name here: https://www.netlify.com/ Push markdown content to git -> Netlify builds using your file-based CMS of choice -> HTML published as blog, etc.

comment 5y ago · link · parent

Ok fine, but the PC had better demos. Future Crew 4 ever!!

https://www.youtube.com/watch?v=rFv7mHTf0nA

(hehe I am a bit delighted in a retro way to see that arguing about PC vs. Amiga is still a thing)

comment 5y ago · link · parent

Check out lit.sh, it's a super simple shell script that does what you're after: https://github.com/vijithassar/lit It's basically a one way markdown to commented source converter. One really slick thing is that since it just comments out the markdown you lose no information about line numbers and can interpret errors from your compiler, etc. with ease (something which is almost impossible with more complex literate programming systems like noweb).

comment 5y ago · link · parent

Sure, but those are the people that have been caught. The ones actually making a difference will likely never be known.

comment 5y ago · link · parent

Security clearances would help, but obviously that's not something that's going to be tenable for all companies.

I think the main way to prevent issues is to just assume at any time you could be infiltrated. Don't mistrust all your employees, but don't live with lax security policies that allow a person to get away with something undetected.

comment 5y ago · link · parent

States and powerful, well-funded adversaries have all the time in the world. Look at the 9/11 attacks, the hijackers were taught how to fly planes by US flight schools!

comment 5y ago · link · parent

It is _far_ more common than you think. A few years after I started at MS this guy was caught: https://www.theatlantic.com/international/archive/2010/07/wh... I knew a lot of folks internally that worked with him, knew him, etc. and had _no idea_ he was a spy or agent. He was the model of a perfect employee or hire for MS at the time.

comment 5y ago · link · parent

I do think a lot of folks are missing the main point that no matter what security theater is in place, a state actor with enough motivation is going to breach it. They're not going to send someone after the password protected parts, they're going to send your recruiter the most irresistible candidate--the perfect background, right out of your favorite school and with expertise in exactly your tech stack. You'll get pages and pages of glowing recommendations from people inside and around the industry. They'll ace your interview loops, be loved by all your engineers and managers, and they won't bat an eye at the lowball first offer you give them. They'll move up the corporate ranks with ease and be everyone's friend... and then the best security in the world doesn't matter one bit.

comment 5y ago · link · parent

I would wager anyone with intimate knowledge of how the KGB works, and has the evidence to prove it probably isn't going to be writing publicly about it for very long...

comment 5y ago · link · parent

Yep, the tooling is still lagging a bit in this regard so just be prepared to deal with confusing errors (invalid image format, etc.) when multiarch isn't available. Docker's manifest command is useful to see if a container has ARM builds: https://docs.docker.com/engine/reference/commandline/manifes...

comment 5y ago · link · parent

It's not really about the raw speed or single core perf anymore. These M1 processors have huge caches and flat-out workloads can really scream on them. Apple engineers took a holistic approach to optimizing the processor for general computing workloads, and it shows.

comment 5y ago · link · parent

The only downsides would be if you need to produce or deal with architecture-specific binaries. For example if you build container images or native code on your machine and ship them up to AWS, Google, etc. to run your service.

With the change to ARM you'll now build an ARM container (or exe, etc.) and it won't run on Intel or AMD-based servers. You'll need to invest time figuring out Rosetta 2, cross-compilation, QEMU, and other multi-architecture workarounds to produce non-native binaries. It's not difficult or particularly confusing once you understand all the moving parts, but it has tripped a lot of people up who thought things would just magically work.

If you're dealing with particularly gnarly messes of complex build systems with obfuscated and obtuse decades old makefile messes it can be quite daunting to add cross compilation and multiarch support. But most codesbases aren't like that and you'll probably be fine. Interpreted and JIT-compiled languages like Python, Node, etc. are generally smooth sailing (unless you link to native code). Modern systems languages like Go, Rust, etc. are very easy to cross compile. With C/C++ you're up against a bit more pain depending on how nice your build system behaves (but let's be honest if you're dealing with a C/C++ codebase in 2021 you're used to some pain).

The inverse problem is also now true. If you pull down a container image, download a binary, etc. it ideally has to be ARM to work. Rosetta 2 can help in the short term to get Intel dependencies working, but again there will need to be some work done to get the dependency moved to multiarch and ARM support.

There's also a major gap in this story if anyone on your team is using Intel machines. There is no good equivalent to Rosetta 2 for Intel--i.e. those Intel users are going to have trouble making an ARM binary or container that your mac can consume. You're going to have to coach them up and walk them through using something like QEMU to achieve this goal (this might not be easy, be warned). IMHO it will be easier to push this load onto your CI system (assuming it can support building ARM) so that people just push source code from their machines and CI takes care of ensuring Intel, ARM, etc. builds are available to everyone.

If this sounds like a lot of issues, try to stay on the happy path of using one architecture everywhere. M1 macs + AWS Graviton 2 instances in AWS is 100% ARM64 all the way and really something incredible once you live in that world. Other cloud providers (ahem Azure?? Google??) need to get their act together and get ARM64 instances available yesterday.

comment 5y ago · link · parent

> What happens if you set up OneDrive and Dropbox (and Google and Apple) to sync the same folder.

Chaos, potentially. Think about deletes... delete a file from the web UI of one service, its client deletes the file locally, but that same instant the _other_ service sees the missing file and happily restores it, the first client deletes, the second client restores, etc. etc. until you've blown gigabytes and gigabytes of network bandwidth.

comment 5y ago · link · parent

Microsoft was planning this 20 years ago with WinFS, to be shipped in what became Windows Vista. For many political and technical reasons it never came to pass. Some of the folks working on it went on to work on what became OneDrive though.

comment 5y ago · link · parent

Yep, and if you squint serverless stuff like AWS Lambda, knative, etc. is basically a slicker more modern take on plain old CGI scripts. I don't view that as a bad thing--the less friction there is between "here's a function/code block.. please run it on this web request" the better.

comment 5y ago · link · parent

Yes, it's a long-lived TCP connection. It's not mandatory but the whole point of the protocol is to make one connection and send/receive all your assets over it instead of making more connections (which take time to setup and slow down page rendering).

comment 5y ago · link · parent

htmx is great, it's come up a few times on HN and has good commentary. There's a small set of web folks that look at all the ridiculous complexities of react, virtual DOM, etc. and nope right out back to good old server side rendering. htmx is perfect for primarily server rendered stuff. And ironically, now we see react going full circle back to investigate a server side approach with their recent react server component experiments.

comment 5y ago · link · parent

I do have to laugh a bit at people being very quick to dismiss this idea when HTTP/2 is effectively the same idea--one long-lived bi-directional 'socket' to multiplex all requests. It adds a lot more niceties like the server proactively pushing assets on first load. Many folks might even be using it right now without really realizing or knowing it.

comment 5y ago · link · parent

Almost every single tool in the k8s ecosystem is a simple statically linked go-based executable. Core stuff like kubectl, helm, etc. Read any k8s guide and step 1 is usually "go download all theses exes from github releases" (or more in vogue now, install a global NPM package that has the executable in its bin dir).

comment 5y ago · link · parent

Make it HTML over WebRTC data channels and then we're talking about something special--totally P2P decentralized web browsing. Beaker Browser is working on stuff like this: https://beakerbrowser.com/
1
798081
84