News for hackers. Stuff that matters.

denzquix

Re:Regex character "$" doesn't mean "end-of-string" on Friday March 22, 2024 @07:40AM (#39789659)
Well, it's not a completely outlandish scenario that the value of `init` might come from a variable that is sometimes at the start of the string and sometimes not, and a newcomer might expect `^` to only match when it is.

Don't get me wrong, it's certainly far more useful as it is, I'm glad it works this way.

Re:Regex character "$" doesn't mean "end-of-string" on Wednesday March 20, 2024 @11:23AM (#39767901)
> In Lua it's only the start/end of the string

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.

Re:Goodbye, Node.js Buffer on Tuesday October 24, 2023 @10:51AM (#37999978)
Although those functions operate on "binary strings", not Uint8Arrays, and there is no especially clean way that vanilla JS exposes to convert between the two that I am aware of.
Re:FTX to file for U.S. bankruptcy, CEO resigns on Friday November 11, 2022 @10:47AM (#33562261)
SBF's announcement of Chapter 11 proceedings today explicitly includes FTX US:

https://twitter.com/SBF_FTX/status/1591089317300293636

From their own benchmarks it seems more like bzip3 is geared towards a different compression/speed trade-off than bzip2, rather than an unambiguous all-around improvement. Am I misreading it?
Re:Get Your Shit Together on Tuesday May 19, 2015 @10:46AM (#9570408)
Memento mori, motherfucker.
Re:Sonny – Fast single page app engine on Friday February 13, 2015 @01:02PM (#9045837)
Went to http://www.sonnyjs.org/ (latest Chrome, Windows 7) - there doesn't seem to be any way to scroll the left-hand menu (it cuts off at "StorageManager" sub-heading for me at default zoom level, I can see there are more by zooming out though) and of the ones I can see, the menu items "render" and "kill" don't seem to do anything.
Re:Ross Ulbricht’s private journal shows Silk Road’s birth on Thursday January 22, 2015 @03:09PM (#8931423)
The extracted quote at the top of the Forbes article here seems to indicate he was thinking along those lines: http://www.forbes.com/sites/sarahjeong/2015/01/22/the-dread-...

"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."

But if you'd like to search Verbatim and also restrict your results to the most recent month/year/etc., even though these are separate dropdowns under Search Tools, you're out of luck. Google seemingly just won't allow this.
Re:Responsive Logos on Tuesday July 22, 2014 @05:55AM (#8068108)
My mistake, I misread.
Re:The Return of Upcoming.org by Andy Baio on Wednesday May 07, 2014 @04:13PM (#7712383)
As Jason Scott (@textfiles) notes on Twitter, this will be something of a first: with all the old content coming back, Archive Team/archive.org "literally provided a backup of a site while it swapped owners."
Re:The fallen heroes of virtual reality (2014) on Wednesday March 26, 2014 @08:19AM (#7472866)
It did, immediately: "As a new Oculus Rift prototype is unleashed..."

It didn't mention the most recent developments, as this article is several months old.

Re:No JSON/MAPS interoperability in 17.0? on Friday March 14, 2014 @11:34AM (#7399473)
I had to check but yeah, that's true, the ECMA spec even says explicitly in its intro: "JSON is agnostic about numbers", they are "only a sequence of digits".

(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.)

Re:No JSON/MAPS interoperability in 17.0? on Friday March 14, 2014 @10:15AM (#7398825)
But that also uses double precision floating point number representation and UTF-8 for strings, so the only benefit (according to the arguments given in the OP) seems to be text vs. binary-based.
Re:No JSON/MAPS interoperability in 17.0? on Friday March 14, 2014 @10:12AM (#7398805)
Since the author seems to have a problem with text-based formats in general, here's a counterpoint by Mike Pall on the LuaJIT mailing list [1]:

"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...

Well, if a security service decides it needs to blackmail someone, they're hardly going to send them a letter on official letterhead. In this case I imagine they'd pretend to be something like a small hacking group, infiltrating individual webcams arbitrarily/opportunistically. Something like that.
Re:New message from Mt. Gox on Tuesday February 25, 2014 @11:49AM (#7298662)
Well, sure, but it's not like this message was rushed out within minutes of anything in particular. They seemed quite content to have a completely blank site for hours on end before putting this up.
Re:New message from Mt. Gox on Tuesday February 25, 2014 @10:42AM (#7298180)
And it doesn't seem to have been proofread very well. "In the event of [something that has already happened]..."? I don't consider myself a particularly picky person, but come on, you could at least make the effort at a time like this.
Re:Mt Gox CEO Karpeles says bitcoin exchange is at turning point on Tuesday February 25, 2014 @10:18AM (#7298015)
Well, at least he's not completely disappeared, I suppose. Otherwise there doesn't appear to be much to actually discuss here. Maybe the fact that he would tell the press that a statement "should" be ready "soon-ish", which seems like total brazen disinterest in taking control of the narrative here, at a time when his company needs it the most.
Re:Kvazaar HEVC/H.265 encoder released under GPLv2 on Wednesday January 29, 2014 @07:52AM (#7143492)
"I'd rather not touch anything which involves patents at all."

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."

[1] http://lua-users.org/lists/lua-l/2009-11/msg00089.html

Re:Show HN: Headline Smasher on Saturday November 30, 2013 @04:10PM (#6824633)
It's pretty far down, but:

"Author of LuaJit Explains Why He Changed Mind on Weed"

...made me far happier than it should have.

Surprise is overrated. The truth has no responsibility to blow your mind every day.
Re:Possibly the worst Facebook ad ever on Friday September 20, 2013 @07:05AM (#6417001)
Callous indifference can be just as bad as malice.

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.

Re:LuaJIT 2.1 Profiler released on Thursday September 12, 2013 @09:22AM (#6373805)
Aha, that makes sense. Well, good luck to them on keeping their "secret" weapon under wraps :-)
Re:LuaJIT 2.1 Profiler released on Wednesday September 11, 2013 @12:54PM (#6368310)
It kind of astounds me how many previous sponsors are anonymous. (Well, sponsored features, I should say. I guess it could be the same one anonymous sponsor.) I'd be interested to know, just in general terms, what kind of real-world situation(s) there are where the downside to being public about this is greater than the goodwill/respect they would get for doing it. Maybe they do not want to be known as a company willing to sponsor development that they don't "own"? Could there be legal ramifications?
Re:Test 'reveals Facebook, Twitter and Google snoop on emails' on Sunday September 01, 2013 @04:33PM (#6312037)
The title mentions emails, but all of the email-related functionality tests had a negative result.
Re:VLC 2.1.0 RC1 is out... on Wednesday August 28, 2013 @08:45AM (#6289561)
"For developers, libVLC and most libVLC modules are now licensed under the LGPL" - interesting, is there a full list somewhere of which modules are/are not?
Re:Terra: A low-level counterpart to Lua on Saturday August 24, 2013 @05:31PM (#6269861)
It bugs me that the numerical for-loop in Terra has identical syntax to Lua's, but different semantics. Especially since you are encouraged to mix Lua and Terra code in the same file. Even something like:

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.

Re:Thanks For The Identity Theft, Yahoo on Saturday July 20, 2013 @09:29AM (#6075169)
This is the right to be misremembered.
Re:The 7-bit Internet on Thursday July 11, 2013 @07:21AM (#6025410)
The point is that HTTP may not be the be-all end-all protocol that we will ever want to use on the open web, and encouraging any potential new protocols to take HTTP's lead and use an arbitrary binary encoding that requires protocol-specific tools to make sense of, is maybe not a decision we should take lightly.

Older »