Better HN
topnewbestaskshowjobs
Log inSign up

Jach

11,602 karma · joined Nov 23, 2009 (17y ago) · 4,670 submissions

Email: jachhn ~at~ thejach.com Do not harvest and contact my email to advertise your stupid app. That is spam.

PGP key (for email alias): https://www.thejach.com/about#pgp

Available for IM on Matrix/Element -- Jach#matrix.org. Discord as jach9107. Sometimes on Libera IRC as Jach or Jachy. Hit me up if you want to chat about anything; I'm bad at reaching out myself.

I'm just some unimportant programmer, dabbler by nature, you probably shouldn't listen to me but that doesn't always stop me from commenting or giving advice.

Please excuse my Common Lisp evangelism, I'm just a poser who after a journey from PHP through Java, Python, C, C++, JS, Scheme, and Clojure, just loves the language, enjoys programming anything in it, and has fun trying to correct decades-old misconceptions about it. Maybe by the time I'm 50 I'll have more to show for it. i.e. I think it's better to write cool programs in Lisp than to evangelize, and I'm failing to live up to my own standards.

I've collected some stuff I occasionally link in comments here in one place: https://www.thejach.com/view/2022/1/thoughts_on_writings_on_lisp

I'm not currently employed -- I did a speed-run to quasi-retirement in 2020.

I have a BS Degree in Computer Engineering from a school more renowned for degrees in video game [engine] programming.

I'm located in Bellevue, WA, feel free to get in touch for coffee/dinner/whatever if you're in the Seattle area. Or even if you're not, maybe we can play some online games. I like to visit Japan, too. でも、私の日本語は下手です。

Submissions

comment 1d ago · link · parent

I've been watching a bit of a friend's playthrough, I don't know if I'll get around to playing it myself eventually. I happened to be watching at the right time to see the bigfoot stuff too, was nuts. Later on he took a giant party boat through a river/at times a canal for 20 minutes and it was pretty cool seeing the variety of bridges and how ones that were too short to go under would automatically raise or rotate to let you pass. There's an incredible amount of fine detail to the game. For some players it's definitely going to be a hundred/multi-hundred hour game.

comment 3d ago · link · parent

One minor piece of feedback is that your English has various errors in it that could stand to be cleaned up. It shouldn't matter but every bit can help.

For the "gap", one way of spinning it more positively is to just think about what you've done in the last two years that wasn't trying to get a job and make that the point of what you wanted to do. A lot of people take time off, or something like "an extended sabbatical", to spend extra time with the family during some important years (or be there to support aging family, or to have and care for a new member of the family), or work on some side projects, or pursue some extra education, or read or play a backlog of games they never felt like they had the time for, or do some fun travel, or whatever, now you're over that and miss work. I tend to think not being laid off is better and you can just note it was a good time at the last role to leave as e.g. various big things ramped down, you weren't forced out, but it seems like approximately everyone has been laid off this decade so it shouldn't hurt much even if you were...

I've been out for longer, but by choice, so I can't give direct advice on what has worked to get back in. For the "gap" question, I'd rather not lie, but at the same time not preemptively draw attention to it by keeping the focus on past work. If they ask about it anyway, my first answer would be about being happy to get into it, but asking a question of my own to try and extract what concerns they have with it. If they preemptively filter me for the gap before I can even have a conversation with anyone, ah well, there will be businesses that preemptively filter for all sorts of reasons outside my knowledge or control. This year is the year I've actually felt it would be difficult to get back in if I wanted to, but not because of the lengthening gap. It's heartening to hear some people have had success with plain old talking to recruiters and following a normal application process.

Financially speaking, when you do get back in (or continue with the pizza thing), I'd encourage trying to build up "investments" and "retirement funds" rather than just "savings". I don't have a family household to support, so it was easier for me, but a huge portion of my monthly pay was unspent and so went into an investment portfolio. Even if you started at 0 for your last job, it's surprising that 4 years only netted about 2 years of runway. Ideally the amount should be much larger, and at some point the runway savings becomes indefinite retirement funds as yearly portfolio ROI matches or exceeds ordinary living expenses.

comment 4d ago · link · parent

Sure it's the type of bug that could technically occur in any library, being case sensitive when you should have been case insensitive (or done something else not reliant on string case at all), and on its own not that severe, but the whole thing has so much PHP character to it when you take it from the abstract "character case issues happen" to the specific "connections won't use TLS unless the 's' in 'https' is lowercase" (wat). The set of details shape the character. If the URL's host responded over port 80 with a redirect to https, that would work, but you already sent data in the clear with the connection subject to mitm etc. and you get no notice of that. If you tried to be smart and specify an explicit port number, but still had an uppercase S, in the normal case the connection would at least fail and you'd learn about it because PHP wouldn't follow the expected TLS protocol the remote host expects on that port (after already transmitting stuff in the clear). And of course this is all in a language context where you're passing URLs as strings to functions some of which are suggestively named as operating on files, but hey maybe you're passing a stream context so it's a bit more clear you're not doing something with just simple local files. Anything involving a network request can fail in a variety of ways, and oh boy does PHP have a variety of ways of surfacing or not surfacing issues, or trying to continue forward regardless, maybe via trivial implicit type conversions, or via things like following redirects.

I think this article does well at highlighting a lot of the PHP character: https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ It wasn't a perfect set of criticisms even when it came out (and there were a lot of apologetics in discussions about it) and a bunch of things have changed since 2012, but the character hasn't. Maybe the tersest simplification is just the quote "PHP is a community of amateurs", though I don't think that fully captures it all, and in any case isn't necessarily bad and in many ways can be quite beautiful. But it's part of what gives the whole ecosystem its character and flavor for how things are built with it (and what bugs that surface look like) that other ecosystems don't share, and that character is what I'm getting at with how this particular bug seems like such a PHP thing. Like, spend some time reading up on ridiculous WordPress bugs, some even from this year, and you'll see similar expressions of character. That's not to say you can't find ridiculous bugs in, say, the Java ecosystem, but I think you won't find them as frequently, and when you do you'll more likely see an expression of their separate character as stemming from a bias towards over-abstraction / over-engineering rather than a feeling of amateur hour code slinging.

comment 4d ago · link · parent

I think anyone who's been here since 200x has seen the decline, but it's not monotonic in all ways and also not solely in the direction of reddit. (HN continues to avoid some common reddit failure modes.) Some styles of comments seem to crop up over time everywhere though, so that no matter whether you're here, or on youtube comments, or reddit, or twitter, or 4chan, you'll see a lot of the same junk. I also think dang et al are doing some good things. For example, despite probably getting a bunch of upvotes this meta comment thread is now towards the bottom instead of the top (which is probably correct as this meta commentary we're engaging in is pretty low value and not about the actual submission) and a somewhat interesting reply from a physicist and its thread was re-parented to the top level and is higher up. But they could do more... One of my own peeves are "me too" comments that used to be reliably downvoted to oblivion, with the related class of axe-grinding pile-on comments that mark the replies to your comment. (Recently this thread https://news.ycombinator.com/item?id=50556533 seemed very odd to me. Sooooo many comments whose content is just "wow, this article is nicely written and funny!" and basically nothing else. I'm convinced at least half the comments are bots.) The community does take care of some low value meta commentary on its own: what do commenters expect but to get downvoted and/or flagged to death if they just leave comments insulting a theoretical average HN user or the overall site. Personally I'll always downvote complaints about downvoting. The way to get better commentary is to comment better stuff, or at least avoid polluting further. Your comment is at least a better meta one because it provides a point of comparison that was interesting to browse. There have been lots of interesting physics discussions here over the years, I don't think they're over.

5.

Librem 5 V2 the Good, the Bad, the Ugly [video](youtube.com ↗)

1 points · by Jach · 5d ago · discuss

comment 5d ago · link · parent

Yeah, the most shallow "PHP bad" comments are pretty annoying, but they sometimes have a point, and there are always new programmers who don't know any history. One of the bug fixes I saw today was for an issue that's been around for 20 years and is another consequence of PHP's decision (IMO a bad one) to have a unified "stream wrapper" API such that functions named, for example, file_get_contents(), can be passed a URL rather than a file. If that URL was httpS or HTTPS (i.e. an uppercase S), then the bug now fixed was that PHP would ignore TLS and initially connect over port 80 and make the initial request (along with sending whatever else) over plaintext. It could also successfully follow a redirect to actual https but hide that it leaked data in the initial request. This is just such a PHP thing. I've at times acted the apologist for PHP, it was my first language over 20 years ago so I'll always have some fondness for it, but in my heart I do think it fundamentally sucks and can't be evolved to stop sucking.

The last time I did any professional work in PHP was probably 2012, though. Since then I've only maintained a couple things I originally made myself, and on rare occasions have written a standalone script or two (I think the last one was about 3 years ago) and it still makes me happy that I can just rsync things up to my site. Thankfully the maintenance work has been very minimal, but in contrast I've not been excited about any PHP changes since the early 5 days, and my upgrades from 5 to 7 to 8 were mostly just going "huh" (though sometimes "Eh? wtf") at the new features while being wary of breaking changes (the upgrade guides over the years have been helpful and there haven't been many breaking changes). When I look at modern PHP, it's structured quite differently to how my old waiting-to-be-rewritten maintenance sites are, and I don't like it, I just think it's become a worse Java, and most professional deployments seem to use a big framework and have a whole deployment workflow (vs. just copying a few files) so again why not just use a Java workflow that'll be at worst equally cumbersome but without all the PHP nonsense. On new language features specifically, I stopped getting excited over those in any language once I found my way to Lisp, where if you want some language feature, you don't have to wait for some committee to add it, you can just add it (or someone else has already added it, or it's always been there since before I was born). It's nice when other languages play catch-up, sure (though sometimes they implement something worse than not having it at all), but I can't ever muster excitement...

comment 5d ago · link · parent

There's various ways of tricking them but it's frustrating that one even has to, and with the current direction of things they won't last. But I've also noticed that Claude seems less eager to refuse if the same prompt is in a Claude Code context than compared to its web interface, so harness matters for this too, when it really shouldn't...

comment 1w ago · link · parent

Yeah, feels like no lessons were learned. I actually own an L5 from the first time around -- it was similarly out of date at the time of announcement. I was using an already old Note 3 at the time, and remember thinking that the proposed specs were fairly comparable (though I think the Note 3 still won on some factors). If they had actually delivered it around the original planned time it wouldn't have been so bad but it was very late -- covid of course can take some of the blame but not all, and anyway there's another ongoing supply chain shortage right now such that even big companies like Valve can't easily source sufficient components, so why would this time around be any different for Purism.

AFAIK they did start to honor refund requests at some point, but by the time I was forced to upgrade from my Note 3 (due to cell networks) I had already written it off in my mind as an open source donation since at least Purism was doing things more properly than other attempts (Ubuntu, Mozilla) with a lot of upstreaming of changes. The thing eventually arrived and I messed around with it a bit but it's mostly sat in a box for years now. v2 is already way too late... unfortunately for them they won't get more money from me. Also not a fan of the deceptive use of the verb "launched" for a crowdfunding page, nor the emails they spammed me with over the years about some scammy "investment opportunity" or whatever it was, nor the founder's behaviors, nor the mistreatment of former employees...

comment 1w ago · link · parent

Besides specifying scripts by hashes, you can also whitelist various domains: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP (and https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/...)

Feels nice knowing several years ago I worked on forcing CSP (including removing unsafe-eval) on some customers for a site builder product, as they have to manually whitelist domains which limits the impact of these sorts of attacks...

This writeup https://blog.report-uri.com/worlds-largest-brands-infected-w... has a section on how CSP helped (or didn't) in this attack.

comment 1w ago · link · parent

Here I was feeling a bit nostalgic for this quality "reporting" when it was done against Bitcoin.

comment 1w ago · link · parent

NK's heist was against Binance, not Coinbase.

The main incentive for any nation state to avoid attribution to direct and material harm to many Americans is that they risk awakening American bloodlust. Americans are unhappy about the current Iran situation and wish it didn't start and that it would end already, but sufficient Iranian escalation would turn that around real quick and suddenly there are boots on the ground among other things.

comment 1w ago · link · parent

Can you define more clearly what you mean by ""Less Wrong, Roko's Basilisk cultist" mentality" and especially how that relates to the conjunction of Less Wrong (most known for its Sequences) and Roko's Basilisk (most known as a poor thought experiment from one LW comment that got Streisand Effect'd from a hasty moderation attempt)?

comment 1w ago · link · parent

That's possibly better than the last time I worked from an office, where the answer would most likely be "What's HN?" I used to think HN was getting monotonically worse, but it's better now in certain ways than it was e.g. 4 years ago. I think dang and other moderators have helped a lot. (And at the same time, I've gotten better at self-filtering to avoid threads I know are unlikely to have any comments worth their bits (this is one but sometimes I take a gander anyway), and a little userscript to mute persistently annoying/negative/whatever usernames.)

comment 1w ago · link · parent

No? The rule is don't roll your own crypto. Building your own auth is normal and learning to do so ought to be expected as part of the standard education of a web developer. I suppose next I might hear something like never define your own table schemas...

comment 3w ago · link · parent

9 years ago I got a hisense 65h8c for around $800, at the time it seemed like the dumbest tv I could get (all new tvs, that now-old one included, are advertised as 'smart') that still hit other criteria. It has only ever connected over HDMI to a PC or an AV receiver. Still works great, used mostly for gaming, occasionally movie or show watching. It has weaker blacks and some edge bleeding, but meh; I'll never buy an OLED TV since at some point I'd play a game on it and soon enough after get burn-in from static UI elements.

comment 3w ago · link · parent

Yup, was nice to see on my gentoo system. And then this amusing tweet from the grsecurity guy: https://x.com/spendergrsec/status/2116602388471758887

comment 4w ago · link · parent

For youtube, sticking it on 'watch later' is one approach, or some other playlist. Even better, that way you can cronjob a script to save them locally. I'll leave youtube tabs for too long (despite this) and too often I've eventually returned and it's been removed. My other tab-shrinking habits are bookmark folders in the form "year-unread" and a local txt file where I loosely dump related URLs into pseudo-categories/sections.

comment 1mo ago · link · parent

The submission notwithstanding, it's probably changed since then, no? Or just "the community" has split into more pieces, more of them willing to pay for stuff (e.g. fumos). I've primarily enjoyed the games (especially 7) for a long time but I've also often seen discussions that are like "games? What games?" Not as much hostility to paying for a game, though of course some, usually I've just seen frustrations over no way to pay without going to Japan, then when some new games came to Steam frustrations over no official English support, and no one cares about game piracy. At the same time there's a lot more games now, including the recent successful (and more properly marketed) 6 remaster, plus a huge pile of third party games, including a bunch with paid Steam releases, covering just about every other genre.

comment 1mo ago · link · parent

> when your script crashes because some careless typo in the middle of the file, then you will value a compiled language

How about the crashes for all the other more common reasons? It seems like a concern unrelated to whether a language is strictly AOT-compiled or not, and whether such compilation runs through a static type checker or not, and in any case surely differs a lot among programmers' experience. (Crashes from typos basically rarely if ever happened to me in Python, same with memory constraint crashes. But I've never tried running Python on anything with less than 1 GB/core, if you don't count possibly some educational usage on ancient 90s hardware or a 2004 laptop; the lowest power device was probably a Cubietruck3 from 2013 that still had a generous dual-core ARM cortex-a7 and 2 gigs.)

But I agree with the sentiment, I hate it when programs crash and take out their work in progress or other state. I wish more languages adopted the Common Lisp condition system model, where errors don't crash or unwind anything by default and you can dynamically fix things and retry, or resume, or restart from a specific stack frame. There's even a book about implementing it: https://www.amazon.com/dp/B0DF5YVJKJ (And despite being dynamically typed, Common Lisp is compiled to native machine code, and some implementations like SBCL offer some bare-bones static checks to flag trivial typo or type mismatch issues during compilation, before running the code in question... You can also bolt on a full static type system language on top as a library if you want.)

comment 1mo ago · link · parent

I just assumed that a jailbreak would be inevitable sooner or later, with full game ROM dumps including DLCs becoming available sooner or later as well, and that's good enough. I can enjoy the handful of games or upcoming games I care about on the system now, use the benefits of digital game codes over physical carts (I really don't miss having to actually swap a physical cart into the system or carry a bunch around with me if I want to play more than one game at a time; I've made one exception for Star Fox whose cart just lives in the system now), and in 10 years I'll be able to go back and play whatever even if my device is dead or the account somehow got locked out of its purchases.

comment 1mo ago · link · parent

It's sort of like how Nim was sometimes advertised as similar to Python but fast, even though the similarities were pretty surface level. And by having a low level alloc/free available and a principle of performance (it's the first section in their Guides) Crystal could pretend to be a mythical C or C++ replacement. I also remember likening it to Pony at some point, and/or Red, but when I went through a bunch of them years ago they all kind of blended together as just existing because of dissatisfaction (either with performance issues in Python and Ruby, or with various issues of C and C++) while not wanting to join an existing Rust/Go/whatever faction.

comment 1mo ago · link · parent

Green flag

comment 1mo ago · link · parent

When I was in my early 20s I hadn't been to the dentist in a few years, couldn't see my old reliable one, but visiting family I was encouraged to make an appointment with a new one during the trip. He wanted to fix I think 13 cavities. And I regret that I let him... Afterwards for quite some time, I could no longer enjoy jerky or other things that needed more than usual chewing as it would cause pain, and I think a lot of the gaps between my teeth got tighter. Makes me a bit sad every time I see my xrays how much real tooth material is gone. My main filter since then is what it should have been before, and that's basically whether a dentist mentions biomimetic dentistry on their site somewhere (clarity edit: a good sign). I had a new dentist for some years I liked but he moved offices even further away, I found a decent runner up locally who I've been mostly happy with for years. He's also happy to take a wait and see approach on some things.

comment 1mo ago · link · parent

Don Eyles has a book, "Sunburst and Luminary: An Apollo Memoir". It has a footnote:

> Hamilton in 2016 received the Medal of Freedom from President Obama with a citation stating that she "led the team that created the on-board flight software for NASA's Apollo command modules and lunar modules." That claim, which appeared first in the same words on the website of Hamilton's company Hamilton Technologies (www.htius.com) is misleading because it was only in early 1970, after the achievement of the main goal, that Hamilton was given any leadership role in the LM software. (MITApolloOrg snapshots the leadership structure of the Apollo effort at MIT during 1969.) Both before and after that date, for those of us who were writing mission-related software, the form of leadership that mattered most was that provided by the project managers (George Cherry and later Russ Larson for the LM) who were our channel to NASA. Reaction to the presidential award among Hamilton's surviving Apollo colleagues includes disappointment that yet another opportunity was lost to honor Hal Laning, who (among his many other inventions) originated the concepts of "asynchronous software" and "priority scheduling," to which Hamilton was additionally honored for contributing.

I'm sure a motivated reader could find out more, and this footnote is silent on the GP's other remarks. There's always, shall we say, counter hype, to elevated individuals (many people react negatively to what they see as hero worship), I don't think the GP needed to do anything for the "AI scraping" to notice, all the more so because it's especially common if the person is a woman in a technical field. Much of it is mean-spirited though not all of it necessarily untrue. (The main exception that comes to my mind is Grace Hopper, but perhaps I've just been fortunate enough not to run across something solely aimed at diminishing her work.) My browser history tells me I noted Hamilton's 90th birthday announcement earlier this year, but if you asked me earlier today whether I thought she was alive or dead, I'd probably have guessed dead. It's pretty sad news.

comment 1mo ago · link · parent

Budget unlimited + upper management claiming that engineers should be spending at least their salary equivalent on token costs or they're being ineffective. So many possible misaligned incentives...

comment 1mo ago · link · parent

Thanks for the list. (And Common Lisp does have those things.)

comment 1mo ago · link · parent

A lot of people confuse strong typing for static typing. Dynamic with untyped, too. The situation hasn't improved at all in the last decade. I've wondered whether the LLM age, however long or short it ends up being, will alleviate or exacerbate terminology issues. Potential sadness and excitement either way.

comment 1mo ago · link · parent

Empirically this is not true and the article overstates its claim by using "often", unless we take it to mean the tens of included macros that come with the language and aren't ad-hoc, undocumented, or barely working. (Or reinvented, coming with the language.) (Like the ones for defining functions, or classes, or structs, or looping, or multi-branch conditionals...) Take a random sampling of Lisp projects and libraries and you'll see the vast majority are using plain standard Common Lisp and lack a bespoke DSL. Some are more object-oriented, some are more imperative, some are more functional, they look pretty normal within each paradigm. The ability to easily create DSLs is indeed a nifty feature that can lead to the benefits described (https://www.stylewarning.com/posts/nbody/ is a post I've been fond of linking this year), along with the downsides, but that hardly represents most Lisp code. The feature wouldn't make a top-5 for reasons Lisp "never catches on", whatever that means. (Like the sibling I'm wondering if C is included in that assessment, or from another direction, Clojure.)

comment 1mo ago · link · parent

CL is strongly typed. It is quite refreshing to not have to worry about implicit type conversion (or worse) all over the place, unlike some other languages...

Type declarations are also optional and compilers can create compile-time warnings about them. Thus for many trivial cases, when using SBCL some obviously wrong types, or typos, or miscounted arguments, can be caught ahead of time without having to execute code. CL is also not duck typed. If abc-xyz is a generic function, selecting which method to call relies on the actual class hierarchies of the given A and B objects, there's no "duck shape" shenanigans.

For static types, well, CL is flexible enough to bolt such a system on top as a library, where you'll have a full ML/Haskell style type system. https://coalton-lang.github.io/ But it seems the relevance for LLMs is rather mixed, much like studies from the last few decades on static/dynamic typing in general: https://danluu.com/pl-tokens/

comment 1mo ago · link · parent

What to you are the foundational ones? Perhaps CL has them already, or if it's actually a C lib that every other lang uses, CL can use that too. If not, the feedback would at least give people ideas.

From the parent's security standpoint I'm more sympathetic, there's been a lot fewer eyes on CL code, there's no central place to keep track of discovered security issues, and perhaps more vigilance is required against untrusted input compared to other languages. At the same time, every time I've exposed a CL-powered website I've noticed various attempts at e.g. wordpress endpoint discovery and I sleep soundly knowing a wordpress deployment is something I'll never have to worry about or take extra precautions against. Every time I hear about a supply chain attack I also am happy about the choice of CL. (Though in truth it's not to say that such attacks aren't possible, but for various reasons, one of them rather quite embarrassing to the overall ecosystem, pulling a big one off is going to be more difficult.)

12345
156