198 karma · joined Jul 18, 2016 (10y ago) · 64 submissions
comment 5y ago · link · parent
Perhaps one difference is that, while panics are always avoidable in a recovery function, stack overflows are not (if it happens to be deep enough already). Does the argument go “even a seemingly safe recovery function can’t be guaranteed to succeed, so prevent the illusion of safety”?
(To be clear: I’m not arguing, just trying to understand.)
comment 5y ago · link · parent
Can you expand on this or link to any further reading? I just realized that this affects my platform (Go) as well, but I don't understand the reasoning. Why can't stack overflow be treated just like any other exception, unwinding the stack up to the nearest frame that has catch/recover in place (if any)?
comment 7y ago · link · parent
comment 7y ago · link · parent
If you want simplicity, and you fully control both sides, and you don’t care about the systemic advantages that REST purports to provide, then your best bet is to avoid HTTP altogether (which in practical terms may of course mean tunneling through it) and stick to a simple, modern RPC protocol.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
> It is not necessary to mark all permanently unavailable resources as "gone" or to keep the mark for any length of time -- that is left to the discretion of the server owner.
comment 8y ago · link · parent
> If you have multiple systems with data, and you want to merge the data together into a unified whole for some reason
This isn’t just about “big data” or “data warehousing” or such OLAPy concerns. It’s really about the bread and butter of modern information systems.
“Get some ID from service A, use it to query service B.” Does that sound familiar? That’s data integration for you. That’s what RDF / Linked Data is about.
comment 8y ago · link · parent
It may be read as an argument against making namespaces a ubiquitous part of JSON, in the same way as they are ubiquitous in XML (even though not part of the base XML spec). It’s a valid argument against getting to the point where namespaces pop up in every JSON tutorial, and every JSON serializer takes a namespace map, and every user of JSON has to deal with them.
But JSON-LD (as RDF) uses namespaces to solve a particular problem (merging data from disparate sources). Solutions involve costs, that’s normal. You might weigh this cost against the expected payoff and decide it’s not worth it for you — but the article doesn’t do that.
comment 8y ago · link · parent
> reliance on the web infrastructure (IRI, DNS, web servers, ...)
This is the whole point of RDF. It is what enables Linked Data.
> I read the history of JSON-LD by one of its main author [1], and it does not originated in the RDF community.
Not sure what you mean exactly, but here’s from http://manu.sporny.org/2014/json-ld-origins/:
> JSON-LD started around late 2008 as the work on RDFa 1.0 was wrapping up. We were under pressure [...] to come up with a good way of programming against RDFa data.
JSON-LD definitely was always an RDF serialization, created by people intimately familiar with RDF and the Semantic Web.
comment 8y ago · link · parent
Are you thinking of “green”/M:N threading (as found e.g. in Go)?
Async/await (as found e.g. in Python) is precisely what hinders the style you describe: If your brand new I/O routine is “async colored” to take advantage of non-blocking syscalls, you can’t easily call it from your regular “sync colored” code without “spilling the color” all around, i.e. considerable refactoring.
comment 9y ago · link · parent
Absolutely. This is a common practice and there’s even a proposed standard for it (RFC 7807). But such a payload need not be sent with 200 (OK). It can refine the status code instead of overriding it.
comment 9y ago · link · parent
comment 9y ago · link · parent
HTTP is not a closed protocol. There will never be a single document defining all HTTP methods, status codes and such. Nothing in the definition of status code 422 makes it inapplicable to non-WebDAV applications. It is as much standard HTTP as status code 400 is (both are “proposed standards” in IETF terms).
comment 9y ago · link · parent
As explained by the same author: http://www.brendangregg.com/blog/2017-05-09/cpu-utilization-...
comment 9y ago · link · parent
Why is this a problem? Is the check heavy somehow? An hour between quick checks sounds like a reasonable interval for a security-sensitive app.
comment 9y ago · link · parent
> You should only ask practical, answerable questions based on actual problems that you face. Chatty, open-ended questions diminish the usefulness of our site and push other questions off the front page.
This is sort of the fundamental limit of the format they chose.
comment 9y ago · link · parent
comment 9y ago · link · parent
On a related note, I’m quietly amazed why there isn’t yet a working generator of electronic music. I mean something that I can download, run, and it would stream believable IDM/techno/trance into my earphones. It sounds like it should be so possible, if not outright easy — yet it’s still humans who are toiling away at their Abletons weeding through that search space. I wonder what crucial problem I’m not seeing.
comment 9y ago · link · parent