Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
samatman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
361.
▲
by
samatman
2y ago
The last time a programming task called for the use of my spacial visualization capability (not that long ago, a couple of weeks perhaps), it went like this. I was working on a system with two priority queues, and three stacks, which were
362.
▲
by
samatman
2y ago
Have you not memorized the password to your password manager? How would that even work?
363.
▲
by
samatman
2y ago
I'm aware of one case where it's a useful feature: the "type this name to delete" form on GitHub (found elsewhere as well). The purpose, which is to make sure the user knows what they're deleting permanently, is def
364.
▲
by
samatman
2y ago
Law was particularly badly burned by the hype wave of "expert systems" in the 1970s and 80s, many of them coded in Prolog. https://en.wikipedia.org/wiki/Expert_system The Wiki link is nearly hagiographic in i
365.
▲
by
samatman
2y ago
You are referring to 'Prolog', replying to a post referring to '"Prolog"'. Your constraint system is missing a clause ;-)
366.
▲
by
samatman
2y ago
Induction is a valid form of inference.
367.
▲
by
samatman
2y ago
What I meant is that Julia is a general purpose programming language, and Frink is a comprehensive and thorough calculation DSL. You could use Frink for things that aren't its focus, of course. But few would want to.
368.
▲
by
samatman
2y ago
I am well aware of Frink, and glad you mentioned it! Julia has the advantage that you can do things with it that aren't unitful calculations, a classic 80% solution. Frink has the advantage that, well... it's Frink. Really nothing
369.
▲
by
samatman
2y ago
Distressingly few programming languages offer an acceptable implementation of units. It's a wonder we get anything done. One of the hidden gems of Julia is that it performs multiplication by juxtaposition, so if you define a variable `
370.
▲
by
samatman
2y ago
Given that this is the same number as the number of IPv4 address which exist, I have thought of it in those terms, many time. One address per human wouldn't be enough, mind you, but we have about half that to work with.
371.
▲
by
samatman
2y ago
This is such a strange take to me. A phone is fundamentally a communications device. I use mine to catch rides, figure out where I'm going, call and text my loved ones, all of these things connect me to other people. I listen through
372.
▲
by
samatman
2y ago
You appear to be a bit unclear on what cool means.
373.
▲
by
samatman
2y ago
Having ridden both routes, the Amtrak from Denver to Reno has a spectacularly better view than the Eurostar from London to Brussels. The food is also better. These kinds of broad comparisons are utterly useless. Continents are much too la
374.
▲
by
samatman
2y ago
Dimensions: SE1: 123.8 x 58.6 x 7.6 Mini 13: 131.5 x 64.2 x 7.65 Counting the original SE as a mini is perfectly reasonable. It's also quite clearly what the grandparent comment was referring to.
375.
▲
by
samatman
2y ago
I think the communication barrier here is that in JavaScript, framework very distinctly means things like React, Vue, Angular, and so on. It definitely does not refer to projects like Node/npm/Bun/Deno, those are toolchains,
376.
▲
by
samatman
2y ago
For the record, I read your entire post before downvoting it, which I did because I disagree both with your diagnosis and its prescription (or perhaps I should say proscription). While there is somewhat of a crisis of adulthood, I find it f
377.
▲
by
samatman
2y ago
The UK's relationship to Argentina was not conquest, true. But it was as close to colonial as you can get without stepping over the line. There's a school called St. Andrews in Buenos Aires. If you know, you know.
378.
▲
by
samatman
2y ago
PDFs can be translated to EPUB using existing programs. I'm going to go out on a limb and guess that Typst emits "good" PDF (I worked on a PDF program for years and I know it when I see it) so that conversion should be fairly
379.
▲
by
samatman
2y ago
I agree with this, and generally take pains to refer to the programs as terminals, not terminal emulators. But at the same time, when a user presses the enter key and stdin provides CR, if you're in raw mode, you can get NL semantics
380.
▲
by
samatman
2y ago
All true. But that's the Great War, not the World War. Also worth noting that it had been eleven years between the Wright brothers' first flight, and the outbreak of the Great War. By the time WWII was on the horizon, US aviation
381.
▲
by
samatman
2y ago
For every news story you can find of someone driving down the highway, I can find you at least 10 stories of someone crashing and burning in a multi-car pileup.
382.
▲
by
samatman
2y ago
Are you certain of that? https://news.ycombinator.com/item?id=41841072
383.
▲
by
samatman
2y ago
This is a very far cry from the claim, which is that the American aviation industry would not exist were it not for some orders by Britain and France. That one is hard to support, given that the American aviation industry was the first su
384.
▲
by
samatman
2y ago
I want to add to this that I routinely see solar plants compared on a cost basis with other forms of energy by using the nameplate capacity. Which is, hmm. Rather than impute motive, since I'm sure motives vary, I'm going to talk
385.
▲
by
samatman
2y ago
Replacing LF behavior with NL behavior in terminal raw mode is a non-starter, decades worth of software will break. The enter/return key only sends CR anyway, software has to decide what to do with that: sometimes the answer is emit C
386.
▲
by
samatman
2y ago
More accurately, there are over 300 SIGGRAPH papers on hair . Slide 3, with this headline: > Curly hair in graphics research is limited to “classical European locks” Contains this phrase: > which varies from an elongated ellipse f
387.
▲
by
samatman
2y ago
Well, no. It sorts according to the lexiographical order of Unicode. Earlier points before later points. How useful this is depends on the language, of course. I did say that as well. But Unicode was put together from legacy character enco
388.
▲
by
samatman
2y ago
Right, you don't need to search that hard for a device which interprets 0xA as a line feed, just set your terminal to raw mode, done. But given the very first sentence: > CR and NL are both useful control characters. I'm wi
389.
▲
by
samatman
2y ago
grep -C 5 does the trick quite nicely I find. rg accepts the same flag.
390.
▲
by
samatman
2y ago
Bingo. And the only solution to this problem, consistent use of a formatter, solves the equivalent problem with spaced indentation just as well. I would prefer to have the spacing version of this problem, personally, because that way I can
More ›