Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mst
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
31.
▲
by
mst
2y ago
In perl, you can do use Some::Library v1.2.3; and there's assorted tooling that will turn that into some sort of[0] centralised dependency spec that installers can consume. Also e.g. https://p3rl.org/lib::xi w
32.
▲
by
mst
2y ago
If you're doing something something reasonably small, using preact rather than react and then wrapping it into a web component so you can just ... put it in there ... is a really nice option to have. (it may not be the right option in
33.
▲
by
mst
2y ago
I don't think you could fit it to Go, no. But see https://hackage.haskell.org/package/effectful for work in the general area that seems rather promising.
34.
▲
by
mst
2y ago
Reminded of back in '02 or so when the networking spods at $ISP would just install everything off every Red Hat Linux 9 CD when they built a machine so they "didn't have to worry about anything being missing." Those were
35.
▲
by
mst
2y ago
They're basically dynamic scoping and it's both a very useful and powerful and very dangerous feature ... scheme's dynamic-wind model makes it more obvious when the particular form of magic is in use but isn't otherwise
36.
▲
by
mst
2y ago
If the form is basically raw CRUD then it works out well, and being able to get up and running quickly and replace it with something more sophisticated later when you actually need that is a good thing. It does require the discipline to act
37.
▲
by
mst
2y ago
The NHS is far from perfect (and was already far from perfect before the Tories spent a decade and a half making it worse) but given you -can- get private health insurance in the UK if you want it, IMO it's best to judge the NHS as &#x
38.
▲
by
mst
2y ago
I know ariadne well enough that I'm pretty confident that the headline will have been chosen out of annoyance rather than click maximisation. That doesn't mean I agree with the conclusion (I am ambivalent and would have to think r
39.
▲
by
mst
2y ago
C++ is the clear winner in what portability is possible. But as they outlined, in a lot of cases achieving it is substantially more effort per arch+OS+version target than Rust. Getting a better ROI on your time is a valid reason to consider
40.
▲
by
mst
2y ago
I would guess they're hoping that it'll get in front of some potential customers and augment their primarily word-of-mouth marketing strategy as a result. I did appreciate that the "hired a car" story included a comment
41.
▲
by
mst
2y ago
I was reading it thinking "their PR firm is earning its fees." I enjoyed the article anyway, but still. (every time there's a freakout on rightard twitter about "you will eat the bugs" the article about insect prote
42.
▲
by
mst
2y ago
You would likely be better with, say, Ian Hislop for me in terms of sarcasm, though while he's definitely a wit, no matter how hard I try I only ever seem to get half way.
43.
▲
by
mst
2y ago
Those are all claims about the accent (my understanding of said claims is basically "sounds reasonable but also I have no idea what I'm talking about"). I was more thinking about the words/grammar/idiom etc. (also a
44.
▲
by
mst
2y ago
We Have Always Been At War With Eurasia.
45.
▲
by
mst
2y ago
I think because people are 'watching' in a situation where twenty years ago they'd've put the radio on but now they default to 'fire something up on Netflix' and so Netflix wants to make things amenable to thos
46.
▲
by
mst
2y ago
Being English-as-in-UK I often run into situations where my dry/sarcastic humour completely fails to be clear to USians. Then again from the UK POV the leftpondians barely count as native English speakers anyway ;)
47.
▲
by
mst
2y ago
Egan would probably be my first thought of somebody who could take a concept like that and make something well worth reading out of it. Second thought would probably be Derek Künsken. (no claim he's necessarily the second best option
48.
▲
by
mst
2y ago
Kindle Edition: £2.99 Sounds like at least £2.99's worth of fun to me from the blurb, so it's now queued up. I swear I'll get to it eventually. ... honest.
49.
▲
by
mst
2y ago
This somehow reminds me of Egyptian mathematics where they refused to admit to the existence of any fraction with a numerator other than 1 (except for 2/3). Learning how to expand e.g. 3/7 into 1/n + 1/m + ... using thei
50.
▲
by
mst
2y ago
There's a parallel here with modern applications perl as compared to the crawling horrors people perpetrated in CGI scripts during the dot com boom. Also present day javascript (the language; the ecosystem is another matter ;) compared
51.
▲
by
mst
2y ago
Also requires, which initially looks batshit insane but is in fact really quite cool: https://www.think-cell.com/en/career/devblog/if-constexpr-re...
52.
▲
by
mst
2y ago
> I think the author just finds C++ fun for some complex combination of personal factors, which is fine. Perhaps partly due to a "hacker" type personality. I think that sums up the point of the article just fine. To me at least
53.
▲
by
mst
2y ago
I really like that book. A bunch of people I've mentioned it to said there was nothing in there that was new to them and they thought it was a waste of time. I fear they missed the vocabulary part, which was what I found most valuable.
54.
▲
by
mst
2y ago
Having that shape become more important to a civilisation than the circle because it has something to do with the geometry of hyperspace seems like it could be an interesting conceit for a sci-fi setting.
55.
▲
by
mst
2y ago
TS would require you to have attrs typed as object|null rather than object before you even got to that line if you wanted to be able to pass a null value to the function/whatever. It wouldn't complain about the ... usage itself be
56.
▲
by
mst
2y ago
> Despite this, please use volatile anyway! When I do not see volatile it’s likely a defect. Stopping to consider if it’s this special case slows understanding and impedes code review. There are quite a few things I reflexively write whe
57.
▲
by
mst
2y ago
Slight oddities converting it into a one-liner but here's a copy and paste from a shell session running in my local WSL slice: demeisen=; perl -e 'my $in_fh = (defined $ARGV[0] and $ARGV[0] ne "-") ? do { open my $fh
58.
▲
by
mst
2y ago
See if Ctrl-[ works. I tend to hit that instead of Esc everywhere I'm using a vi-like after having a weird keyboard issue that nerfed my Esc key for a while (long and uninteresting story) and then finding that Ctrl-[ was more comfortab
59.
▲
by
mst
2y ago
I can't cope with python because of the lack of 'use strict' - I continue to be sad that 'explicit is better than implicit' is supposed to be a rule of python except apparently not for variable declarations (also I
60.
▲
by
mst
2y ago
Plain perl: open my $fh, '<', $filename or die "Couldn't open ${filename}: $!"; Nicer: use File::Open qw(fopen); ... my $fh = fopen $filename; (and File::Open is simple pure perl code so if I ne
More ›