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

Numbers. Everything is a float in JS. Python has ints that transparently turn into bigints on demand, floats, and if you need it a whole library of C numeric types to do interop (along with complex numbers and all kinds of other great stuff in python's standard library).

comment 5y ago · link · parent

I'm not being baited into that argument. If you're starting a greenfield project then one of the first priorities is picking the tech stack and considering all of the trade-offs therein. In some situations you and your operations team might value deploying a static binary with zero dependencies to manage--Python is not a good choice there. Or in other situations you might depend on scientific code and models which are difficult or impossible to port away from Python. There's no simple answer to your question.

comment 5y ago · link · parent

If you want to go even further back, Microsoft's Popfly experiment from 15-ish years ago was a similar idea: https://en.wikipedia.org/wiki/Microsoft_Popfly

comment 5y ago · link · parent

I'd start with the higher level question, do I want a production Python deployment and all the headaches of deploying, managing, scaling, etc. that come with it? There are some fantastic things in the Python ecosystem that might make it worth going down that route. But if you're just chucking some templates at the results of basic CRUD API operations or simple business logic, etc. you might not need those headaches.

IMHO go with whatever one you know and don't depend too much on any special features or framework-specific things that aren't critical. You're likely going to throw away and rewrite whatever you produce many times throughout its lifetime if it gets some legs and grows.

comment 5y ago · link · parent

Some good info here: https://docusaurus.io/docs/#comparison-with-other-tools

It's the same general wheelhouse of documentation tools as mdbook, i.e. take a pile of markdown and produce high quality documentation. One of the standout features of Docusaurus is that it's based on React so it builds a SPA for your documentation (while still being good about pre-rendering, etc. for good SEO). If you load up a Docusaurus site and start clicking around to read docs it feels like a native app without clunky refreshes, etc. It's very extensible and can be turned into very custom and slick documentation portals.

It also supports MDX which is a a version of markdown that embeds React controls and allows interesting client-side interactivity in your documents. This is very handy for frontend libraries and tools which typically have a showcase or component library which you can interact directly from the docs.

comment 5y ago · link · parent

Read the article, it's in the first few paragraphs. Arduino switched its internals to use Go (with a new Arduino builder CLI tool) two years ago, then started building a new IDE experience with Theia and Electron (JS-based) last year. There's zero Java in the future of Arduino.

comment 5y ago · link · parent

ARM has plenty of docs, sources, etc. for its Mali GPU: https://developer.arm.com/ip-products/graphics-and-multimedi... Their GPU drivers are even distributed by Debian: https://wiki.debian.org/MaliGraphics

You are probably conflating vendors like Broadcom who license the ARM ISA and processor IP but add their own (closed) GPU to SoCs they produce, like those used in the Raspberry Pi.

Remember ARM is just a company that license and sell an ISA and chip design. It's up to system integrators to turn those designs into physical chips, and sadly we have seen many of them don't value making their designs available to open source, etc. The solution to this is to not support those vendors, not to complain at ARM.

comment 5y ago · link · parent

IIRC SOAP helped give the browser world XmlHttpRequest which eventually helped kickstart the whole AJAX web 2.0 / modern webapp world we love today. So in some ways it was an important stepping stone to get there, just a dead end from the general demise of XML tooling.

comment 5y ago · link · parent

There's a super basic dashboard: https://github.com/tektoncd/dashboard Tekton is really more of a lower level engine for CI though and doesn't focus on building UI, etc. You might check out jenkinsx which uses tekton but builds a whole new jenkins experience on it: https://jenkins-x.io/

comment 5y ago · link · parent

Check out tekton CI (https://tekton.dev/), it's a Kubernetes operator to run a CI pipeline that's defined as commands running inside any container. Use any language, any commands, etc--as long as you can get a container image, you're good to go. There's a growing set of community created and curated actions to do common things too: https://github.com/tektoncd/catalog

Yeah you need a k8s cluster, but even a simple kind dev cluster that you spin up in 30 seconds with one command on your laptop will work.

I like it a lot because it enforces very little structure on you and doesn't reinvent everything. Stuff like storage (either ephermeral or existing volumes), secrets, configuration, etc. are already modeled and supported by Kubernetes and tekton can use all of that natively. And since it's all k8s native stuff you have all of the power of k8s, like its entire API for manipulating and managing execution, exposing services, etc. There is very little cognitive overhead or new things to learn once you know k8s.

If you're really averse to k8s though, check out drone. It has a local execution mode that is similar and just runs whatever pipeline commands you want in docker containers. https://github.com/drone/drone Batect is another even more minimal tool that's effectively just a docker-based workflow system: https://github.com/batect/batect

comment 5y ago · link · parent

Aren't Slack's threaded conversations basically a new take on usenet? It's not distributed, and silo'ed of course.. but it's the same idea if you squint.

comment 5y ago · link · parent

Google Reader made RSS feel just like Gmail (which isn't the same as email in general I will agree, but close enough for many people). It was fast, dense, and easy to scan days and weeks of content in a single sitting. I'm _still_ mad they gave it the axe so Vic Gundotra could juice the numbers on failing Google+.

comment 5y ago · link · parent

Python is a C core that takes Python code and spits out bytecode to interpret and run said Python. What esbuild is doing is not much different than any other interpreted language.

(p.s. JS is not compiled)

comment 5y ago · link · parent

Snowpack (which also uses esbuild internally) has a webpack compatibility extension: https://www.npmjs.com/package/@snowpack/plugin-webpack -

comment 5y ago · link · parent

Yeah, I kinda wish Amazon would make a Graviton 2 powered laptop or dev machine. It would be really nice to develop directly on the ISA for the instance instead of cross-compiling. An Apple M1 of course works, but more ARM64 laptops need to be available. It's sad that it never got traction in the Windows hardware world.

comment 5y ago · link · parent

Amazon's Graviton 2 is the M1 of the server world in my experience. It's faster, cheaper, and overall a better experience than any other instance type for most workloads. You have to get through a bit of a learning curve with multiarch or cross-compiling to ARM64 depending on what your codebase is like, but after that it's smooth sailing.

Azure and Google need to really step up and get some competitive (or even any) ARM instances--fast.

comment 5y ago · link · parent

How's GRPC support for Swift? That to me is more of a tell if anyone is using it for internal infrastructure and services in big companies.

comment 5y ago · link · parent

Wow yikes, kudos to the great disclosure and fix process from homebrew and other involved folks.

Github Actions seems like such an easy target--the workflows people build are complex, difficult to audit, and lightly or never tested at all except in prod. It's just a recipe for disaster and all these recent issues (see also: https://news.ycombinator.com/item?id=26908076) make me wonder if the Github flow model of a wild west of public pull requests just isn't compatible with how people use workflows and automation in practice. No one in their right mind would leave a Jenkins server open for anyone to trigger some workflows. It's silly that everyone effectively does that because they see some Github branding on a page and feel safer.

comment 5y ago · link · parent

Ooph, yeah I can see this turning into a big headache for large community repos. People are going to submit a first pull and then start opening issues like "Why hasn't pull request #123 been approved yet?, "Please approve my pull #456", etc. within minutes and hours.

comment 5y ago · link · parent

Doing graphic design on a janky 17" CRT at 1024x768 resolution wasn't the best experience. In '98 it was still pretty early days for the web and web design was a bit of a wild west (much like the TV show) where any random person with an email address, website, and copy of Photoshop could sell their design services. Even big companies didn't have dedicated digital marketing or design divisions yet. The quality of what you got varied a lot.

comment 5y ago · link · parent

I love the serendipity of thinking about a problem earlier this week and wishing I had a trusted, encrypted, identity-aware pipe I could throw on top of a websocket or similar connection... and a few days later here it is on HN. Looks like a nifty project!

comment 5y ago · link · parent

Yeah there's a lot of churn going on, but the infrastructure space is innovating in really interesting ways right now. On one side you have things like Pulumi diving into the full programming language for configs, on the other side you have an entirely different ethos of git-ops where you only have 'dumb' JSON/YAML configs and store all their state in a git repo with hooks to deploy and manage everything--(ArgoCD, flux, etc. are tools here). And in the middle you have some ideas for non-turing complete languages like Starlark, Jsonnet, Cue, Dhall, etc. to let you do some config generation but limit the risk of building broken configs.

There's really no definitive 'winner' or best option yet. Each has strengths and weaknesses relative to others. It might just come down to how a team prefers to manage and work with infrastructure.

comment 5y ago · link · parent

It's infrastructure-as-code to the logical conclusion that you write real programming language code (Python, Javascript, Go, etc.) to build your infrastructure. Something like Terraform lets you declare infrastructure with HCL/JSON but doesn't give you a lot of flexibility to reason about or dynamically change things. If you want to spin up a frontend server for every backend for example, you have to write out the configs and tweak them to match the desired state. Pulumi and similar tools go the next step and let you write code to build your infrastructure--if you want your frontends and backends to be in sync, write some Python to make it happen instead of spelunking in a pile of configs.

It's super useful and compelling at scale, but there are some potential downsides. For one, it's a real program and IMHO you should treat it as such with the same rigor of documentation, testing, etc. as the production code you're deploying. This might actually make your processes a bit slower or more risky. Because if you don't do that then you just risk building unmaintainable, untrustworthy deployment code that nobody wants to use.

The second downside is you're taking a big bet on Pulumi to stick around. At this point, it's probably a safe bet. But the more you use their SDK and system the more tightly coupled your production deployment is to the continued existence of Pulumi. If they go bust and can't maintain the SDK you might have a production system that can't be deployed anymore.

comment 5y ago · link · parent

It's all fun and games until a rootkit finds a vulnerable executable to elevate privileges and really get going... just one mixed up bound check, missing end of string, etc in 20 year old code and oops!

Don't run any of those old apps as an admin at the very least.

comment 5y ago · link · parent

Windows 3.1, Windows 95, Windows 98, XP, etc. There wasn't a cohesive design language it was just referred by the OS name. You had garish colorschemes (remember hot dog stand?... yeah) and lots of silly things. Win32 programming back then was barely one step above pushing pixels on a canvas and it showed. VB and OLE, then COM started to standardize prebuilt components like dialogs and such that could be shared and used between apps but it was still a wild west of design. Into the 90s it got worse as Windows 98 gave more control over rendering to apps and we had things like Winamp skins that looked like a modern stereo, or a (thankfully) brief period where non-square windows with ovals, curves, and all kinds of junk were in vogue (track down an old copy of Bryce 3D if you want to see something really wild). It's an era of computing that's probably best left forgotten. :)

comment 5y ago · link · parent

Just because you can doesn't mean you should run something that old. I would not want to run a 21 year old native application written in C or C++ from a different era of security consciousness on any modern machine. Certainly not anything connected to the internet--remember that was the hey-day of massive worms that crippled entire networks of machines. If the source hasn't been touched in decades, treat it like an antique and keep it in a museum of a virtual machine.

comment 5y ago · link · parent

It's not over. Developing the vaccine was the easy part--getting it in 6 billion+ arms is the hard part that's just barely starting. That's a Manhattan project level of work IMHO.

comment 5y ago · link · parent

And a browser can be tricked into sending the cookie if you accidentally misconfigure the server. You will have no indication or warning of this happening, from either the client or server side, if you get it wrong.

comment 5y ago · link · parent

There's the unfortunate middle area where the air makes the fire rage even hotter, like a blast furnace.

comment 5y ago · link · parent

Yep, and then the temptation to fix it is to roll your own homebrew auth over websockets... which is super risky.
1
717273
84