Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
patrec
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
331.
▲
by
patrec
5y ago
A thousand times this. There is absolutely no reason to allow newlines in filenames, and it is pathetic that there isn't even yet a mount option to disallow totally idiotic filenames (at the minimum I don't want programs to create
332.
▲
by
patrec
5y ago
> That link is not an issue with json, but with javascript (that js treats keys named __prototype__ special). JSON is meant to be (and was widely advertised as) a Javascript subset, but isn't, but almost no one is aware of this. So
333.
▲
by
patrec
5y ago
It's not hard to find quite recent json parsing vulnerabilities, e.g. https://www.trustwave.com/en-us/resources/blogs/spiderlabs-b... A fun historical one was remote code execution due to a json parser b
334.
▲
by
patrec
5y ago
Ugh, no. JSON is garbage, especially from a security standpoint. For security purposes you want an unambiguous format with a well-defined canonical representation that's easy to parse. Not only is JSON none of these things, many people
335.
▲
by
patrec
5y ago
Amen!
336.
▲
by
patrec
5y ago
Emergency calls working as expected is a live and death issue and I don't think you'd be so blasé about this if it had been you vainly trying to call 911 and someone you loved died because of this bug. I assume you see this throug
337.
▲
by
patrec
5y ago
> I’m hard pressed to find examples in history of large groups that said, “We thought A, but the answer’s actually B.” End of the Soviet Union?
338.
▲
by
patrec
5y ago
I’ve long taken Cloudflare to task for granting DDoS protection for countless DDoS-for-hire services, to no avail. I’ve maintained that Cloudflare has a blatant conflict of interest here, and that the DDoS-for-hire industry would quickly b
339.
▲
by
patrec
5y ago
> I don't agree. Lisp is "easy" to parse, but difficult to add structure to. I have no idea what you mean by this, or how you think it relates to your original claim that having languages with a less terrible grammar than
340.
▲
by
patrec
5y ago
This has nothing to do with old or new and everything with both C and C++ being serious aberrations in programming language design. Most languages not directly influenced by C (new or old) simply don't have these bizarre issues. Also a
341.
▲
by
patrec
5y ago
It's like CSI vs Dr House. Debugging in python is forensic; you can figure out why your program died, but you can't really fix it. In common lisp, debugging can be curative as well as forensic. If you hit a problem like you call f
342.
▲
by
patrec
5y ago
Mikel Evins has written two articles you might find interesting: https://mikelevins.github.io/posts/2020-12-18-repl-driven/ https://mikelevins.github.io/posts/2020-02-03-programming-as...
343.
▲
by
patrec
5y ago
> As long as the content is presented to a human for consumption, I think it will be possible to duplicate it, Why do you think so? If you can tell the difference between a family scene and a screening of a Hollywood film, why can'
344.
▲
by
patrec
5y ago
The last remaining analog hole may soon be people. Recording devices are basically already digital, and there is no fundamental difficulty in embedding enough pattern recognition to ensures that you don't replicate material that's
345.
▲
by
patrec
5y ago
Fahrenheit 451 style, right? Because local vs cloud doesn't matter squat if all the devices your have locally are locked down completely and controlled by someone else.
346.
▲
by
patrec
5y ago
t = some point in time t+ε = some point in time a tiny fraction later
347.
▲
by
patrec
5y ago
> but if I buy ebooks, i'll just go ahead and strip their DRM without giving a damn who says no Yeah, dream on. How long do you think this option will stay available to you? I sometimes get the impression that intelligent technical
348.
▲
by
patrec
5y ago
Cool, makes sense, but I'd put that under the accidentally memorized camp :)
349.
▲
by
patrec
5y ago
Can you explain how this "go-to approximation" is ever useful to you? I don't understand why anyone would memorize pi to more than 3 digits, other than by accident (such as the sibling, who just saw it on a campus wall countl
350.
▲
by
patrec
5y ago
> What? How did the last digit end up as '4'? That's no kind of rounding I've ever heard of! Have you memorized pi to nine significant places, or how did you even notice? BC implements arbitrary precision arithmetic w
351.
▲
by
patrec
5y ago
I fully agree (and thanks for the idiomatic let bracket ordering correction). But the fact that terribly hacks like this are nonetheless adopted shows how much of a pain the paren clutter is and that claims to the contrary are pure cope.
352.
▲
by
patrec
5y ago
The reality is that just about every single lisper will insist how they don't see the parenthesis and they are not a problem, and just about every single lisp has some ugly ad hoc hacks to reduce their clutter. They just differ somewha
353.
▲
by
patrec
5y ago
Can anyone with a background in the area comment on how legit this is? I have no trouble believing that a spry research professor in a quantitative field could get a PhD in another quantitative field at a fairly advanced age, especially if
354.
▲
by
patrec
5y ago
Thanks that's interesting! They however kept what I consider J/APL's main syntactic misfeature, overloading the meaning of every symbol in pretty arbitrary ways depending on whether it is called with one or two arguments. E.g
355.
▲
by
patrec
5y ago
The claim was that there is not operator precedence in J and that the result is "totally avoid ambiguity at all". But that's just not so. The / in `+/%#` totally is an operator, and could also have a user defined n
356.
▲
by
patrec
5y ago
This is just untrue. You can't even parse J without knowing if something is an "adverb" or a "verb".
357.
▲
by
patrec
5y ago
Yup, Fortress had the same idea, I wonder if independently.
358.
▲
by
patrec
5y ago
This article is refreshingly honest about the general inanity of video games. Does anyone have a compelling explanation why video games are such an artistic wasteland even compared to other mainstream forms of entertainment like TV or cinem
359.
▲
by
patrec
5y ago
What made you reject the maybe a priori more likely alternative hypothesis that you just have less potential?
360.
▲
by
patrec
5y ago
You're welcome to cripple yourself (and you'd be in illustrious company -- just about every famous name in Emacs's history has suffered severe RSI); I was just trying to answer your original question.
More ›