Nerdvana
- Website: nrdvana.net
- About: I like code, and code that writes code, and code that writes code that writes code. So I especially like Perl.
Recent Actions
-
Commented on Websockets in Catalyst
Wow, indeed I missed this. To be fair, the mechanism of not writing the response as a side effect of accessing an attribute on the Request object is a bit unintuitive and undocumented... but if I had grepped the source...
-
Commented on Websockets in Catalyst
Thanks!...
-
Posted Websockets in Catalyst to Nerdvana
Recently I've heard quite a few people comment about how Catalyst can't do document how you can retro-fit websockets into an existing Catalyst application in a materially useful way, and without rewriting any of your existing code. I'l…
-
Commented on Premium XS Integration, Pt 1
I did mention the MGf_ versions in the paragraph right under the example. I was just going for completeness on the topic. I probably ought to use mg_findext, but in the spirit of trying to win all the benchmarks, I...
-
Posted Premium XS Integration, Pt 2 to Nerdvana
This is a continuation of a series of articles about how to write XS libraries that are more convenient and foolproof for the Perl users, while not blocking them from using the actual C API.
… -
Posted Premium XS Integration, Pt 1 to Nerdvana
Intro
There are several competing philosophies for wrapping external C libraries. One is that the XS module should hide all the details of the library and provide a clean “Perlish interface”. The opposite extreme is that the external C functions should be exposed to Perl usin…
-
Commented on Please relicense from "Perl 5" to MIT or Apache 2.0 license
In order for someone to use a perl module, they have to run it with a perl interpreter, which requires that they already comply with the perl5 license. I think this is why most module authors default to that. Is...
-
Commented on Match Anything, Quickly
Hi, Cincinnati perlmongers had a chat about this and we realized that you forgot /smx on the sub-eval'd version. Fixing that, it still shows that eval'd sub is faster than regexref, but reveals that (*ACCEPT) is the slowest way to...
-
Commented on Match Anything, Quickly
I ran into the same thing while developing Language::FormulaEngine::Parser. After some testing, I found that eval-ing the function that contained the regexes yielded a huge speedup vs. trying to iterate qr// objects. I thought it had more to do with...
-
Commented on A dream resyntaxed
I also don't really see that class data is anything other than a global. You can describe them in lots of flowery prose, but in the end everyone in Java just used class static fields as global variables in all...
-
Commented on A dream resyntaxed
This post sort of sidesteps the question of whether attribute syntax is a thing people want more of. Yes, perl does have a pattern of key/name/attributes/body forming, but it only recently formed, and I, for one, find the attributes to...
-
Posted The Quickest Way to Set Up HTTPS to Nerdvana
I registered on blogs.perl.org today so that I could comment on posts about object systems. However, the very first thing I encountered was a password page with NO SSL. So, even though I have a ton to say about object systems, my first blog post will instead be about setting up SSL.
(I…
Comment Threads
-
Randal L. Schwartz commented on
Please relicense from "Perl 5" to MIT or Apache 2.0 license
Artistic 2 has already had thorough legal review. Has something happened in copyright law to require a new review?
-
Randal L. Schwartz commented on
Please relicense from "Perl 5" to MIT or Apache 2.0 license
I concede. Y'all have made good points. I withdraw any objection to the effort.
-
Robert Rothenberg commented on
Please relicense from "Perl 5" to MIT or Apache 2.0 license
This is a problem with the company's procedures, not with Perl's or modules' licenses.
It is not worth the (mostly unpaid) time of a CPAN author to contact contributors and change the licenses on what may be dozens of modules, because a potential u…
-
Dean commented on
Please relicense from "Perl 5" to MIT or Apache 2.0 license
The assertion that "It isn't worth the (mostly unpaid) time" ignores the reasoning for an author writing and releasing the software in the first place.
If the author releases the software hoping that supporting it will generate business (consulting, supporting, or even just reputational) then lowering adoption friction is a good thing making the effort worthwhile.
IMO this is the scenario that most suits the rationale for a permissive license.
If the software is more oriented to hobby users and not intended for businesses to sell it, then it is more up to the author.…
-
john napiorkowski commented on
Websockets in Catalyst
Instead of reaching into $env, you want want to look at the -> io_fh method in Catalyst::Request. We added this and some other PSGI 'jailbreak' features to Catalyst about 13 years ago. Sadly the Advent site is gone but the articles remain on github:
https://github.com/perl-catalyst/2013-Advent-Staging/tree/master/1to4-Nonblocking-Streaming/eg
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.