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

Zero build tooling is necessary with Alpine.js, just import it through a script tag, ES module script import, etc. and you're done. No webpack setup, no bundling--nothing. Vue can be used like that too but from what I understand there are some tradeoffs (and it should be noted the modern wave of near zero config build tools like vite, snowpack, etc. easily bundle and build components like vue automatically too).

I think from a usage perspective Alpine.js puts you more into a progressive enhancement mindset and focus too. With vue if you want to make something that's mostly static but with some dynamic flourishes you need to go deep down a rabbit hole of SSR, static site gens, Gridsome, etc. etc. and it can really make your head spin. With Alpine.js just write HTML and CSS, then add a bit of interactivity where it's needed--you can be done with an entire project in the time it takes to understand and setup an isomorphic SPA.

comment 5y ago · link · parent

Tinnitus is one of many symptoms many long haul COVID-19 sufferers complain about. Just as an anecdote Dr. Drew Pinsky was ill with COVID-19 around Christmas and complained about severe tinnitus as a result of his infection. So I'd be a little careful trying to draw sweeping conclusions about tinnitus right now without trying to account for and control the pandemic over the last year.

comment 5y ago · link · parent

I am really curious, who is actually using Windows containers in a way that's critical to their business? (i.e. your main web app, not giving some janky legacy Windows thing a place to live while you migrate away from it)

I have to imagine at some point probably very soon all of the time spent maintaining and hacking in the NT kernel to work in a container world is just throwing good money at a vanishingly small segment of the market.

kudos to this team for being on the ball and supporting ARM and ARM64 images though. Now when can we actually run ARM64 stuff on Azure....

comment 5y ago · link · parent

This isn't really a new approach to scaling--even if you're using a server DBMS like postgres/mysql/etc. you still have to figure out scaling based on your data. If that data is easily isolated into customer/user units then it's straightforward to shard them across more instances, whether they're more postgres boxes or SQLite processes. If the data isn't easily sharded... well you're no worse off whether you're using SQLite or any other database.

The main point here is that instead of reaching for a costly to maintain, to configure, to secure, etc. DBMS first, many folks would likely be better served by the vastly simplified management of a single SQLite process.

comment 5y ago · link · parent

I think the point was that saas data is easily sharded as it's all just a bucket of data per user/customer so you have a lot of freedom in distributing customers across different database instances. The most specialized version of that architecture would be an entire DB per customer, but that's likely a lot of potentially unnecessary file overhead (and a giant pain for upgrades and migrations). IMHO you'd probably be fine to just start scaling horizontally distributing users across more DB instances (but really... don't miss the main point that you might not even need more than one DB instance in the first place).

Reports are nice because they can generally be done in an async job that's effectively a big map-reduce run across your DBs. If you need faster real-time reports you're going to want some kind of pipeline for events and stream processing that's outside the scope of this anyways.

comment 5y ago · link · parent

Random thought--what about storing SQLite replicas on a OCI image store (docker registry) as an option? Then your service code (as container images) and data (as SQLite replicas from litestream) all live in one central store, under the same auth strategy, the same versioning, the same auditing, etc. You can tightly lock down your servers to only talk to the image registry and that's it.

comment 5y ago · link · parent

Where are the four unit tests in podman's codebase that should be catching these issues?

I find it very strange that your reaction is, "the software is infallible, it is _YOU_ who have failed the software by not logging bugs!" It is perfectly reasonable to have a conversation about the quality or issues with a piece of software SEPARATE TO the logging or finding of bugs in said software.

comment 5y ago · link · parent

¯\_(ツ)_/¯ I'm with you on not enjoying loss of access to my hardware and getting further and further away from the metal. But also, we gotta make a living and pay the bills... it's a competitive disadvantage with online services to be using more expensive to run instances.

In my experience and testing Rust lang is lagging a bit with ARM support. It's not that the language doesn't have good support (it does, it's great and very easy to cross compile), it's that the ecosystem around rust is _very_ x86 focused. Like I saw a simple JSON parsing library decided it would be cool to add SSE and SIMD support and now it doesn't work well on ARM (which has a totally different set of SIMD extensions). I have a strong suspicion your rust projects depend on libs with similar issues--but be ready because once those libs support similar optimizations for ARM, it's going to be super fast.

comment 5y ago · link · parent

Yes, the kernel has great support for ARM. Distros that need to package up the kernel, tweak the bootloader, deal with peripherals, etc.... less so on great support. ARM is a bit of the wild west with SoCs defining all kinds of esoteric and exotic hardware configs managed by the kernel's device tree infrastructure instead of a typical BIOS. If you're dealing with server workloads it matters much less (and they probably support UEFI) so stick with a distro that has good support (Ubuntu, Fedora, etc.). If you're dealing with ARM hardware directly like little SBC boards, start getting comfortable rolling your own device tree, bootloader config, etc. as you're probably going to need it. In all cases though the stock mainline kernel is fine to use.

comment 5y ago · link · parent

Well I see in my testing and use 20% more performance and 30% _less_ cost with AWS Graviton 2 ARM instances vs x86. The cost savings can be enormous. The bottom line of your company doesn't really care about bootloaders and OS 'freedom'.

comment 5y ago · link · parent

I'm on a Ryzen APU too, the Raven Ridge 2500U, and have had an equally disastrous experience on linux. I will say though in the last 6 months I have _finally_ figured out how to make the machine stable and stop randomly crashing. Here's the key, and it might help you to try too:

- Upgrade to _the very latest_ kernels. I'm not kidding, you need to start following mainline stable builds. In Ubuntu or ubuntu-based derivatives check out the ubuntu-mainline-kernel script: https://wiki.ubuntu.com/Kernel/MainlineBuilds I'm on 5.10.4 right now but probably should uprade. You need a _minimum_ 5.4 kernel to fix some egregious instability issues, but in general keep your kernel bleeding edge updated.

- Disable MWAIT instructions. This was the final missing piece of making my machine stable. The TL;DR is that AMD put out errata recently that MWAIT is basically 100% broken on these early Ryzen processors: https://www.amd.com/system/files/TechDocs/55449_Fam_17h_M_00... You can read much more in this enormous kernel bug report: https://bugzilla.kernel.org/show_bug.cgi?id=196683 The fix is to add a "idle=nomwait" flag to your kernel startup.

It's a night and day difference with these fixes in place. I still sometimes get a touchpad lockup on wake from sleep, but it's maybe 1 out of every 50 times and kind of expected for linux. No longer do I have random kernel panic-level lockups every hour. The little laptop just flies and flies with these Ryzen processors.

comment 5y ago · link · parent

Yep, it's flying under everyone's radar right now too. In my experience Graviton 2 instances are ~20% faster and 30% _cheaper_ than the best x86 instances for typical web workloads (transform some templates, talk to a DB, do IO bound network work, etc.). It's an amazing way for nimble little SaaS startups to pluck away customers from giants by offering much cheaper prices. The little guys that build up ARM expertise are going to be great exits and pickups for the larger fish in the ecosystem too (because if your platform is an old thing with a lot of technical debt, moving it to ARM is not trivial and the expertise to do it is in wild demand).

If you're working on online services and NOT looking at or using ARM servers right now--you are in big trouble and already too late to the game.

comment 5y ago · link · parent

It's not too bad on modern Ubuntu-based variants in my experience. There's a font manager GUI that lets you drag and drop add stuff, one click install font, etc. like on Windows. You can also just copy ttf or other files into your ~/.fonts for your user and they work fine too (I like this since you can just sync and backup your fonts across all your machines).

The real mess, sadly, is configuring all your apps and such to use different fonts. There are an unbelievable amount of obscure configs, tweak tools, etc. if you want to change system fonts.

comment 5y ago · link · parent

And god help you if you'd like to add a font. You'll need to read hundreds of pages of mostly out of date documentation. Then track down brusque gatekeepers on IRC and obscure communication channels to plead your case, only to be mocked and told simply, "No." You will be told it's not "the Debian way" and hundreds of pages of more documentation will be thrown at you. Almost certainly someone will quiz you on your knowledge of obscure 90's unix minutia and the writings of Eric S. Raymond. And once you pass that gauntlet your font might be accepted in a few months, at which time it's already way out of date and you start the whole process over again.

comment 5y ago · link · parent

See: https://docs.gitlab.com/ee/user/project/web_ide/ It's a lightly re-skinned version of the monaco code editor that VS code also uses. It looks and feels like VS code.

comment 5y ago · link · parent

Just briefly browsing the source this is a much more minimal version of VS code--many of the extensions microsoft packages and ships aren't in it. I don't doubt that helps reduce the JS bundle significantly and as a result gives you much speedier loading times. For example there's no terminal or any of its extensions in this version of VS code.

comment 5y ago · link · parent

Github already has that feature, every repo has an "Edit in Codespaces" button to press: https://github.com/features/codespaces

comment 5y ago · link · parent

90% of VS Code is typescript that already works fine in the browser. There's just a small layer of nodejs to interface with the local filesystem and run processes. Quite a few projects have existed that pull the core of VS code out into the browser and reimplement the small platform layer on their own:

- Eclipse Theia: https://github.com/eclipse-theia/theia

- Coder: https://github.com/cdr/code-server

I'm sure there are countless versions for mobile that are hasty Cordova-based versions of the VS Code core too.

comment 5y ago · link · parent

I wouldn't get too attached to this tool, folks. Github lawyers are not going to be happy with this domain directly infringing on their copyright and are almost certainly at this very minute sending cease and desists. Even if they like the tool and want to see it succeed, the domain is a bit of a fishing and spam risk for them. Best case Github tells them to knock it off and suggests a different domain they use.

Gitpod has been around for a few years and offers the exact same service but on a more distinct gitpod.io domain: https://www.gitpod.io/docs/getting-started/#prefixed-url

comment 5y ago · link · parent

Code Mirror 6 is supposed to be focusing on mobile-first usability: https://codemirror.net/6/ The creator just had a talk at Fosdem a couple days ago too: https://fosdem.org/2021/schedule/event/codemirror/

I am super excited about a usable mobile code editing experience, and am really surprised how much monaco has languished and failed to deliver here.

comment 5y ago · link · parent

You missed a key point that the SDL author raised--they're tired of maintaining all the ancillary software around a project. Every minute they waste troubleshooting a CI/CD failure, bugzilla limitation, etc. is a minute taken away from working on their actual project. And as this is an OSS project of love and not their full-time job it's even more infuriating for them to waste their free time janitoring services.

Gitlab self hosted is fantastic, but it's far from 'set it and forget it' maintenance. There's significant technical overhead to keeping it updated, secure, migrating its database with major releases, scaling out the underlying hardware as project demands increase, etc. Moving to a hosted platform like Github solves those problems and gets them back to being productive on their project.

The authors are really lamenting that they have to give up control of their project's source code and tie themselves to a new commercial offering (something that history has shown us over and over will inevitably lead to more technical debt in the future as platforms fade--just ask any former sourceforge, google code, etc. user).

I don't blame them--it's sad to see that the state the art in self-managed OSS source code never progressed much beyond "become a domain expert in server operations and kludge together a suite of tools with wildly different UI, management and operations; also, documentation is non-existent or wildly out of date".

comment 5y ago · link · parent

Read-up on the history of git. It was not designed to be a new panacea of OSS development. It was designed to keep the Linux kernel development running smoothly after their commercial source code host dropped them--that's it.

Running a git server is actually very easy, just run the git-daemon command: https://git-scm.com/book/en/v2/Git-on-the-Server-Git-Daemon This is actually easier than running something like Gitlab that requires setting up a database, a reverse proxy, or even an entire runtime environment like Kubernetes, etc.

You're falling into a trap of conflating git with Github. Github took the mechanics of git and built a slick, centralized, commercial source code host on top of it. They made a social network that engaged users and gamified writing code. Lots of folks are working on similar commercial and open source variations of the same. But in all those cases git is just a part of the tech and not tightly coupled to the success (or failure) of them.

comment 5y ago · link · parent

SDL is a project with a long history, so let's pretend they move a backlog of 5,000 issues over to Github. Everything is great--now users can search, discuss, open, manage, etc. all these issues on a slick web UI. People are happy and things just work.

Now some years later there's a blog post from Github, "An update to our free tier" that outlines dramatic changes. It turns out Microsoft needs to make some changes to keep their shareholders happy with their returns. Now Github only allows 2,500 issues per repo on the free tier--you'll be wowed with slick graphs that show for 99.999% of users they'll never even know or notice this new limitation. People will post long comments on the Hackernews thread about how 2,500 issues ought to be enough for anybody and that Github/Microsoft actually love developers _more_ because they're willing to reduce the features than shut down the business.

And now SDL is in a bind.. a free project that generates no revenue now is facing a dilemma. Should they pony up real dollars to keep the history of their 25+ year old project? The cost of moving source control isn't trivial and is a huge ops burden that keeps the devs from doing real work... and cha-ching out comes the credit card, out goes a $100/mo then $200/mo etc, etc. charge.

This isn't some wild speculation, look at Microsoft products like Onedrive that clawed back huge free tiers of storage in the past. It's just an inevitability with commercial software that costs will rise and someone will be squeezed for money.

comment 5y ago · link · parent

You don't have to compete with hosted systems that have dedicated teams of developers and operations shipping features though. Linus Torvalds manages the development of the entire Linux kernel (millions of lines of code, thousands of contributors) with just an email client, text editor, and git CLI.

I will say too don't expect these hosted services to free you of operations burden. On the contrary you're even less connected and more at risk of operations burdens when these hosted services are facing issues. When Github actions CI/CD is acting up, or the hubot issue manager isn't working, or the release artifact store doesn't have the bits you expect, etc. your entire project grinds to a halt and it's not easy (by design) to eject out and work around them. Projects that depend heavily on all these hosted services are going to find over time that they need to buffer and insulate themselves from these centralized, single points of failure. It's just a different kind of operations burden.

comment 5y ago · link · parent

Github wasn't created until 2008, and in those early days there were big limits on hosting (very limited number of repos per user, even public ones). The everything free, everything easy all you can eat buffet that you see on Github today is a much more recent change. Back in '05 almost everything OSS was on source forge and Google Code, both of which offered super easy hosting, discussions, etc.

comment 5y ago · link · parent

Again, I will restate what I said. Follow the context of the decisions (as you have already done) instead of demanding people explain it.

comment 5y ago · link · parent

Just be aware that "boomer rant" creator made one of the most highly successful and used game development libraries in history. I would wager 75% of the games in your steam library use or depend on SDL in some way. Almost certainly most of the games from your childhood that you cherish and love have used SDL too. You should probably be thanking them for creating something that gave you joy at one time, and giving it away for free...

comment 5y ago · link · parent

Github made _Github style_ development seamless--i.e. centralized source control, slick web UI instead of CLI focus, pull requests instead of e-mailed patches. It's one of many different ways to build software though and it's a fallacy to say the entire field of software development didn't move forward until it existed. For someone who has only known Github style development it's true, but for many projects (including some of the largest in the world like the Linux kernel, all of Google's internal code, etc.) Github style development isn't necessary.

comment 5y ago · link · parent

Git didn't exist until Linus Torvalds sat down and hacked it out in a few weeks during 2005. I remember using SDL back in '99 to play with game development on Windows 98. So the short answer is, git wasn't even an idea in its creators head when SDL was around and thriving.

IMHO when you see a design decision that seems odd to you, it's a good opportunity to investigate the entire context around that design, rather than pepper the devs/issues/comment threads/etc. with pointed questions, "Why did you do X when Y is now clearly better??".

comment 5y ago · link · parent

So any concrete stats on how this has helped shorten bug investigation time, improve quality of releases, etc? It looks like an interesting data-driven approach to bug finding but there's curiously no qualitative analysis of how it's actually working in practice. I'd be a little concerned that systems like this can fall into the background as a flurry of noise and process that doesn't actually improve the quality of the product.
1
8081828384