Don't get me wrong, it's certainly far more useful as it is, I'm glad it works this way.
96 karma · joined July 11, 2013
Don't get me wrong, it's certainly far more useful as it is, I'm glad it works this way.
There's an additional caveat: if you use the optional "init" parameter to specify an offset into the string to start matching, the ^ anchor will match at that offset, which may or may not be what you expect.
"I imagine that someday I may have a story written about my life, and it would be good to have a detailed account of it."
It didn't mention the most recent developments, as this article is several months old.
(Unrelated observation from looking at the spec again: there's no standard/recommended decoding behaviour if an object has several members with the same key.)
"On a tangent: IMHO most binary serialization formats like BSON, MessagePack or Protocol Buffers are misdesigns. They add lots of complications to save a couple of bytes. But that does not translate into a substantial improvement of the parsing speed compared to a heavily tuned parser for a much simpler text-based format."
[1] http://www.freelists.org/post/luajit/Adding-assembler-code-t...
Unfortunately, that's not something you can reasonably expect, ever. Mike Pall made a statement about the IP of LuaJIT [1], and made the point that while his own contributions are freely donated to the public domain...
"I cannot guarantee it to be free of third-party IP however. In fact nobody can. Writing software has become a minefield and any moderately complex piece of software is probably (unknowingly to the author) encumbered by hundreds of dubious patents."
"Author of LuaJit Explains Why He Changed Mind on Weed"
...made me far happier than it should have.
I'm reminded of these t-shirts with "Keep Calm And..." slogans that were allegedly generated automatically (presumably culled from web searches) and sold on Amazon without human intervention: http://www.bbc.co.uk/news/business-21640347
I think the lesson is, if your business model MUST involve pulling stuff from the Internet arbitrarily, it is no less your responsibility as if you had crafted it yourself if you intend to commercially repurpose it.
for i = 0, < 10 do --[[ ... ]] end
...and throwing a compile error if you omit the <, though arguably ugly and weird, would still have been preferable I think.