Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mst
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
211.
▲
by
mst
2y ago
One of many reasons why most of the perl devs I know use the Cpanel::JSON::XS fork now.
212.
▲
by
mst
2y ago
[raises hand] I'd be fine with no speedup at all if I can get more reasonable RAM usage and an easily linkable .so out of the deal.
213.
▲
by
mst
2y ago
I tend to use green on black for daytime hacking and amber on black in the evenings to reduce blue light issues. But I also habitually run with jacked up contrast and nerfed brightness, so I make no claims that what works for me would be a
214.
▲
by
mst
2y ago
Seems like "if it's obvious where it came from, use the unadorned name, if it'll be non-obvious to a future reader, use the more explicit form" is a solid heuristic and letting the programmer decide is a feature. (it mig
215.
▲
by
mst
2y ago
There are enough people who care about adding zig to existing projects being easy (including the zig BDFL) that I would hope that this approach won't be stabilised until they're confident that it isn't adding enough extra com
216.
▲
by
mst
2y ago
Yep, that was very much meant to be a "yes, and" reply. There's quite the overlap between perlers and lispers because of (among other things) the shared love of 'building the language up towards the problem.' People
217.
▲
by
mst
2y ago
Not really, but I'll give you an example and then if you can give me an idea of why you're curious I can try and provide a few more if you think that'd help. A good one that I think is fairly typical of my annoyances - '
218.
▲
by
mst
2y ago
perl has closures, block based scoping, custom keywords (not exactly a macro system but you can achieve similarly awesome crimes against syntax), heavy introspection, an optional condition system, compile time computing, an integrated inter
219.
▲
by
mst
2y ago
libera #perl often comments that part of the zen of perl and actually being good at it is knowing when to use something else. Sometimes people get offended when we give them a fully working awk/sed one-liner that does the job better bu
220.
▲
by
mst
2y ago
Having found more than one thing called that, could you enlighten me as to which Houdini you're referring to, please?
221.
▲
by
mst
2y ago
May also be worth a look at Solid and things the same author has built on his dom-expressions library (I've been thinking about using his mobx-jsx for example) - a more React-ish experience but with a compilation strategy that seems to
222.
▲
by
mst
2y ago
Because I tend to hold it with my left hand and tap with my right, I've deliberately moved icons around until my most commonly launched apps are as close to the bottom right corner as possible. I've actually stopped using the 
223.
▲
by
mst
2y ago
"Will my RAID configuration designed so my system can still boot even if it loses a drive not actually let it still boot if it loses a drive?" is not a question that I think is fair to expect sysadmins to realise they need to ask.
224.
▲
by
mst
2y ago
If it's designed to be used for caching, then replacing an old entry or throwing away the new one is quite possibly a perfectly reasonable "out." If it's designed to be used for other purposes as well, not so much. (I wa
225.
▲
by
mst
2y ago
The usual reason I've seen RAID 1 used for the OS drive is -so- it still boots if it loses one. Not doing so is especially upsetting when you discover you forgot to flip the setting only when a drive fails with the machine in question
226.
▲
by
mst
2y ago
Macros are an escape hatch. "Don't use a macro unless you need to" is good advice, but when you -do- need to, having macros around is lovely. Yes, you can achieve the same thing by typing out what would've been the expan
227.
▲
by
mst
2y ago
Elixir feels like that as well (in the same broader sense). Their trick of 'use' being require+import (ala perl) becomes brilliant when you realise import can be a macro, and that's how libraries inject things into your curre
228.
▲
by
mst
2y ago
20 years back I remember chatting to a sysadmin over beer and the conversation included "Linux mostly does either whatever Solaris does or whatever BSD does, you just have to check which it is before trying to write anything." (th
229.
▲
by
mst
2y ago
> A lot of the diagrams in the article are higher-level, not sub-charts. I must have failed to understand even more things than I thought I did. I'll have to read through again when more awake if I want to fix that, I suspect. I thi
230.
▲
by
mst
2y ago
I cut my teeth on BBC BASIC with the occasional inline arm2 assembly block on an Acorn Archimedes A310. It had its limitations, but it damn well worked and you could have total control of the machine if you needed it. (also the Acorn Archim
231.
▲
by
mst
2y ago
Macros are something where usage tends to go 1) OMG confusing -> almost never use them 2) OMG exciting -> use them faaar too much 3) Huh. Powerful, but so powerful you should use only when required. Cool. Quite a few things turn out t
232.
▲
by
mst
2y ago
Wrapping the existing code in hooks of some sort to enable injecting profiling or whatever is really quite nice. A lot of javascript hot reloading implementations rely on using Babel to do that as part of a build step so they output the wra
233.
▲
by
mst
2y ago
Those do strike me as elucidating the power in suitable contexts very nicely. For those following along at home, click https://uk.mathworks.com/help/simulink/ug/powerwindow_02.png first and then realise that&
234.
▲
by
mst
2y ago
I use printf debugging locally as well. Interactive debuggers and I just don't get on, and my test cases are built to start fast enough that it works out for me. Usually I have a 'debug_stderr' function of some sort that seri
235.
▲
by
mst
2y ago
I think using the drawing it out process to understand initially is ... not how my brain would do it, but seems like a perfectly valid approach. But once you -do- understand it's time to stick that in a reference file out of the way an
236.
▲
by
mst
2y ago
I think (2) is a misunderstanding and it'll handle something like "a small office with some PCs and some servers and some users connecting remotely" or so. However, even if I did get that right, your point (1) is excellent. S
237.
▲
by
mst
2y ago
> Even more onerous, if it isn’t built into your language core like JavaScript/node.js, adding it later means modifying your entire runtime, libraries and codebases to understand it. Interestingly, while this has proven true of asyn
238.
▲
by
mst
2y ago
I think one would expect a partition to cover a lot of certificates for its size (or in the case of a compromise all certificates mapped to that partition) so I don't think you end up with nearly so meaningful a problem.
239.
▲
by
mst
2y ago
I think I'd rather have e.g. [mapcar list '(a b c) [count-from 10]] or so. They look great in examples, but once you're doing [mapcar list '(a b c) x] then I still suspect that you'll confuse yours
240.
▲
by
mst
2y ago
There's a bunch of stuff in perl that's best restricted to one-liner or short script usage - i.e. the sort of cases where you're using it for the early inspiration super-awk purposes. Writing perl as a programming language is
More ›