HNHacker News
TopNewBestAskShowJobs

john-shaffer

595 karma · joined October 22, 2019

https://github.com/john-shaffer

hn.scorn217@passmail.net

submissionscomments
john-shaffer··on GameLisp: Scripting language for Rust game development
> I wonder whether a naming convention would solve the problem? If all coroutine functions and methods have names like fire-arc* and move* , then your synchronous call to fire-arc* would stick out like a sore thumb.

That'd be fine as long it's simple to write a wrapper of a different color. If I change fire-arc to fire-arcSTAR, but I can do a quick (def fire-arc (to-sync fire-arcSTAR)) then I don't have to visit call-sites. If it's not possible to make a wrapper, then that would be a major pain point.

Edit: Can't get HN to print the asterisks.

john-shaffer··on Ask HN: Which OS do you use for server production environments?
Debian 10. It's familiar to anyone who's used Ubuntu, and it's quite solid in my experience.
john-shaffer··on I Built My Own Shitty Static Site Generator
You can use WP2Static and either run a container locally with something like https://lokl.dev, or spin up a VM that's firewalled off and access it through an SSH tunnel. The auto-on/-off part really does little for security, it's the firewalling that does the trick. Turning it off is good to save costs though.

I'm actually working on basically exactly what you described (using WP2Static), and we're planning for a competitive $10-15/mo price, but we're not quite ready for launch yet.

john-shaffer··on Pantheon.io Wants to 10x Our Cost
That $250 plan is specifically for Registered Investment Advisor websites which are heavily regulated and have special requirements. We haven't officially launched yet and haven't published the final plans, but the basic plan for normal websites will be around $10-15/mo.

You can certainly use HTTrack or just set up WP2Static yourself. https://statically.io/ is very nice too. If the website is managed by only a single person who has technical skills, then I would recommend WP2Static on https://lokl.dev. You can probably deploy for free to Netlify or AWS free tier. But if you need access by multiple people, convenience, or any kind of support, then our service can be very valuable.

I would really like to have a stupidly low cost plan that would just be a no-brainer to use all the time, but unfortunately the way WordPress is designed makes it extraordinarily difficult to bring costs down enough. Each site has to be a separate WordPress instance, and we can't host WordPress instances for free. We are considering having a free deployment option for people that just want to run WordPress locally.

john-shaffer··on Pantheon.io Wants to 10x Our Cost
It looks it could be served pretty easily as a static site for very little cost. I try to use WP2Static whenever possible. It's a plugin that crawls the WordPress site and deploys a static version to a server of your choice, like S3/CloudFront or Netlify.

If you're the only person who accesses it, you can run the WordPress instance locally in Docker via https://lokl.dev/ and pay only for the static site costs, which are usually laughably small. If you want managed hosting, there are proprietary options like HardyPess and Strattic. Or you can use any commodity host and install WP2Static. I'm developing a low-cost ($10-15/mo) WP2Static-based hosting service at https://app.staticweb.io that should be very easy to get started with, but we haven't quite gotten ready to launch yet. The servers work great, but we don't yet have a support ticket system set up. If you want to try it and need support, you can just email me at john@app.staticweb.io without the "app.". Even if you don't try it, feel free to email with any questions about WP2Static.

The only hitch is that the site seems very large. Some people report slowness with WP2Static crawls, but all the sites I've tried have been fine, so YMMV. I've done some work in an addon[0] to support incremental crawling, but it needs a bit more love to make sure it's reliable. I lack a slow site to test it on and fine-tune it.

[0] https://github.com/leonstafford/wp2static-addon-advanced-cra...

john-shaffer··on Google's new logos are bad
Those are some of the most confusing icons I've ever seen. WTF is Y with a few arcs?

Even if I had memorized what every icon means, I can't tell them apart without looking closely because most have the same shape and similar colors. "Everything looks the same" is not good design.

john-shaffer··on 2020’s Best States for Racial Equality in Education
I can only answer for Texas. Texas is stereotyped as racist and uneducated, but that only seems true when you don't compare across the same demographics. For high school diplomas and college degrees, if you compare whites to whites, blacks to blacks, Asians to Asians, Texas does very well [1]. The only ethnicity that this is not true for is Hispanics, but that is because Texas has a high proportion of non-English speaking Hispanics. If you were to break down the stats by English-speaking vs not, you would likely see Texas doing well by that metric as well.

Texas is very free in terms of choice. It's trivial to home-school. College admissions are very open to all races. If you're in the top 10% of your high school class, you automatically qualify for state universities, regardless of whether your school was lily white or deep in the hood. The Hazelwood Act provides 150 free credit-hours to military veterans and to a lesser extent to their spouses and children. In my meth-infested neck of the woods, the military is a common way for poor people to obtain job skills and/or a college education.

[1] https://statisticalatlas.com/state/Texas/Educational-Attainm...

john-shaffer··on What Clojure Spec is and what you can do with it
If you're considering using spec, you should know that spec alpha2 is significantly different internally, and is much easier to write tooling for, but has not been ported to ClojureScript. I would highly recommend trying alpha2 if you're not using CLJS, even if it's a little less stable.

https://github.com/clojure/spec-alpha2

john-shaffer··on Subscription or no subscription? That is not the question
I like the pricing model of language apps like LingoDeer and Rosetta Stone. They offer a lifetime subscription for a one-time fee that costs less than two annual subscriptions. I have no problem taking that offer, but I have no recurring subscriptions for apps.
john-shaffer··on Tell HN: My HN app is rejected by Apple for showing Covid-related submissions
"It Just Works" != "It wipes your data without warning unless you perform the correct incantation"
john-shaffer··on Tell HN: My HN app is rejected by Apple for showing Covid-related submissions
Apple only allows their browser engine on Apple devices and has done everything they can to make PWAs perform poorly.
john-shaffer··on 12-year-old suspended over toy gun seen in virtual class
A "welfare check" is just police stopping by and asking if everything's okay. The CPS aren't involved.
john-shaffer··on Disney criticised for filming Mulan in China's Xinjiang province
In 1861, would "taking note and understanding Confederate people views on Confederate issues" have been more productive?

You can justify absolutely anything if you try hard enough. It's harder to justify the policies of a racist, genocidal government like the CCP, but calling them "Chinese issues" seems to work for some.

john-shaffer··on Apple publishes human rights policy, commits to freedom of information
If the CCP believed that Apple's absence would strengthen the regime, then they would get rid of Apple. Clearly they think it's in their best interest to have Apple around. You can disagree with them, but I think the CCP is much better positioned to know what's in their interest than we are.
john-shaffer··on Interview with Paul Graham
He's always written about conformism and wealth. See "Why Nerds Are Unpopular" (2003) [1], "What You Can't Say" (2004) [2], and a lengthy discussion of what wealth is and what it means for society in "How to Make Wealth" (2004) [3]. All of these are featured in his book, "Hackers and Painters".

[1] http://paulgraham.com/nerds.html [2] http://paulgraham.com/say.html [3] http://paulgraham.com/wealth.html

john-shaffer··on How to Build a State
CHAZ was the Capitol Hill Autonomous Zone in the Capitol Hill neighborhood of Seattle, not Portland.
john-shaffer··on How to Build a State
> Monarchs just need to pay armies, and the easiest way to do that was to keep them conquering new territory and paying them off with the spoils.

You "just" have to be one of the greatest military geniuses of all time. Easy.

Actually, this was an insurmountable problem even for Alexander the Great. His army simply got tired of marching all over the world, and demanded to go home.

john-shaffer··on Specter – Clojure API for immutable programming (2017)
Specter is fantastic. It makes transformations on deeply nested data structures easy. Want to transform all the "datetimes" from JSON data into actual datetimes (or vice versa)? It takes about five minutes if you have to look everything up. Works with ClojureScript too.

Some production code:

    (defn transform-tagged-values [x]
      (sp/transform (sp/walker tr/tagged-value?) tagged-value->cljs x))
Give it a predicate for which values to transform, and a function to do the transformation. Couldn't be easier.
john-shaffer··on Small nuclear reactors: tiny NuScale reactor gets safety approval
The sun also will burn out eventually, and every other star as well.
john-shaffer··on Show HN: A proactive way of securing your Linux server
On EC2, I've had a great experience using AWS Systems Manager [1]. I don't need any ports open, and it works great with normal shell tools and emacs given a .ssh/config like this:

host i-* mi-*

ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"

[1] https://docs.aws.amazon.com/systems-manager/latest/userguide...

john-shaffer··on Tips for stable and portable software
java.time is really nice, so I use Java 11 (2018) on my servers. If not using java.time, Java 8 (2014) or later is fine. But I use Clojure, not raw Java. I haven't had any issues with upgrading. If a server works with 8, it works fine with 11 (in my experience).
john-shaffer··on Amazon deletes job listings for analysts to track ‘labor organizing threats’
How is dropping a concrete block on someone from 27 feet up not expected to kill them? Miners should have more common sense than that.
john-shaffer··on Bottlerocket, an open source Linux distribution built to run containers
Nothing is "broken" about it. It's just that when you have tens of thousands of machines that might need an urgent security update, it's very inefficient and costly to destroy all of them at once instead of patching. Destroying machines regularly is not the same thing as frequently destroying all of them at once.
john-shaffer··on Platforms' current attempts to regulate misinformation amplify opinion power
The problem with Truth Forces of the past, such as the venerated Inquisition, is that they just couldn't be everywhere at once. They could never completely stop people from saying things in private, or from running to safe havens. If only the governments of the time had had platforms as pervasive and automated as Facebook and Google! They could have fact-checked and shadow-banned content about the earth being round or moving around the sun, the earth being older than 6,000 years, species adapting over time, etc. The damage has already been done, but at least we have proper censorship in place now to bury any such misinformation that may occur in the future.
john-shaffer··on Platforms' current attempts to regulate misinformation amplify opinion power
Rather than hanging their neighbors for witchcraft, instead they moan about conspiracy theories involving QAnon or Russia.

On balance, the free dissemination of ideas seems to have helped truth spread more easily. Lies didn't have any problem spreading before we had electricity. Unless you think that we should still be basing our entire culture around the worship of gods carved from stone and wood?

john-shaffer··on After 48 years, Democrats endorse nuclear energy in platform
I highly recommend "Probability Theory" by E.T. Jaynes. Don't be fooled by the generic title - the book is my Bible for reasoning with uncertainty.

> In my opinion, this book is a required read for anyone who wishes to understand precisely how the scientific worldview is, in a mathematically defensible sense, the best possible worldview, the one that lets us optimally use evidence to develop an interlocked Bayesian network of evidence supported beliefs that can change and evolve as the evidence is accumulated. It also shows the critical connections between physics and statistical mechanics and Shannon's theorem in computational information theory, laying the foundation for a fair bit of modern physics as it demonstrates that physical entropy and information entropy are very much one and the same thing, from a certain point of view.

john-shaffer··on Apple Terminates Epic Games' Developer Account
We've had decades of exclusivity deals for one console or another. Those actually prevented people from playing the games without shelling out for an extra console.

Total War: Troy is exclusive to Epic Games Store for one year before it comes to Steam. If you got the game on its release date, Epic gave it to you for free. To play it, you need one more launcher to go along with Steam, Battle.net, GOG, and various custom launchers. What is the harm being done here?

I like Steam, but I doubt that it will be good in the long term for it to be completely dominant. It needs a solid competitor.

john-shaffer··on Apple Terminates Epic Games' Developer Account
Linux gaming is actually really solid now thanks to Lutris, DXVK, WINE, Steam, etc. Lutris especially makes it all work smoothly, and apparently it's Linux-only. Could Mac have similar gaming support if it were less hostile to OSS?
john-shaffer··on Google is apparently taking down all/most Fediverse apps from the Play Store
Which powerful, privileged people should get to decide what we are allowed to hear about? When the power is inevitably abused, how can we address that abuse when we may not be allowed to know about it?

Is it even necessary for free speech to directly result in a happier humanity? What if it simply preserves the conditions that we need for progress, or merely keeps us from sliding backwards? Would that be enough to make it worthwhile for you?

john-shaffer··on Google is apparently taking down all/most Fediverse apps from the Play Store
I don't watch Fox News, but even I know that Fox invites Democrats on to talk about their opinions. Here is an interview where a BLM leader rants for 5 minutes: https://youtu.be/FTjBJiXalHU?t=59
← PreviousPage 3 of 7Next →