Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vor_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
331.
▲
by
vor_
14y ago
Yes, because it's not just a C paradigm. Additionally, even though 1 is true, comparing 1 and true returns false!
332.
▲
by
vor_
14y ago
Array keys shifting downward wouldn't be weird magic; it would be the expected behavior when removing an element from an array. Dismissing it as simply how Lua's tables are designed doesn't make it intuitive or expected. > Your first ex
333.
▲
by
vor_
14y ago
You don't consider it an inconsistency for (1) and (not 0) to evaluate to different results?
334.
▲
by
vor_
14y ago
Only nil and false evaluate to false. Because there's no distinction between nil and non-existent elements, checking the existence of an element with a value of 0 requires that 0 evaluates to true, so you get this situation: while 0 do
335.
▲
by
vor_
14y ago
I find Lua's use of tables as a universal container to be clumsy. For example: local array = { one, two, threee, four } A gap is silently created in the array because Lua returns nil for undefined variables. This causes the (#) opera
336.
▲
by
vor_
14y ago
Here's an article I've submitted before that makes a case for considering Squirrel instead of Lua: http://computerscomputing.wordpress.com/2013/02/18/lua-and-s... The best reason against using Lua in my mind is that undefined variables in
337.
▲
by
vor_
14y ago
There's no continue. Instead, you must use goto. > While true, you should iterate integer-key tables using ipairs and hash tables using pairs. In my opinion, this makes Lua's combination of arrays and dictionaries pointless since one mu
338.
▲
by
vor_
14y ago
That cartoon is about Bobby Kotick of Activision.
339.
▲
by
vor_
14y ago
> which will probably have a net harmful effect on the free software culture. Mind explaining how funding the development of free software hurts free software?
340.
▲
by
vor_
14y ago
You'd be complaining if they contributing nothing. Damned if they do, damned if they don't.
341.
▲
by
vor_
14y ago
May I ask what the big deal is? Halting all use of OS X because you can't download Xcode without a free Apple ID seems extreme.
342.
▲
by
vor_
14y ago
Citing "Tweet" is something they've previously done on the IE webpage. It didn't come off to me then as an ironic joke but a genuine marketing blurb.
343.
▲
by
vor_
14y ago
But the drawback, according to the article, is an increasingly expensive impact on cache lookup over time.
344.
▲
Lua and Squirrel: The Case for Squirrel
(computerscomputing.wordpress.com)
2 points
by
vor_
14y ago
|
0 comments
345.
▲
by
vor_
14y ago
The only things that evaluate to false are nil and false, so applying the "not" operator to a true value (non-nil, non-false) will evaluate to false. Hence, "not 1" is false, as is "not 0".
346.
▲
by
vor_
14y ago
It's not hate. It's pointing out that it's not Diablo in JavaScript.
347.
▲
by
vor_
14y ago
It's annoying building a class system by hand. I've got C functions I wrote to do it for me, but I wish I didn't have to. There are certain behaviors I dislike even more. One example is a historical quirk in which all non-nil or non-false e
348.
▲
by
vor_
14y ago
I strongly disagree. Rakuten is foreign and strange to most customers, while Buy's commonality as a term brings with it a sense of trust and familiarity.
349.
▲
by
vor_
14y ago
Small, fast, and easily embeddable in C programs. It's been popular in videogames for years but hasn't seen much usage outside that industry, so it's always interesting to see it used in different ways.
350.
▲
by
vor_
14y ago
Lua sometimes drives me nuts, but it's such a humble little language that you can't hate it for too long. There are alternatives I would have preferred, like the Lua-inspired Squirrel ( http://http://squirrel-lang.org ), but Lua is the mos
351.
▲
by
vor_
14y ago
> I formerly thought, "why would anyone want to use a GUI for Git? It's just a crutch so you don't have to use the CLI." Honestly, I can't stand Git on the command line and always interact with it through a GUI. I feel like source contr
352.
▲
by
vor_
14y ago
I was surprised at the number of people casually accusing Broder of a conspiracy. Usually, it's the big company representative who gets the vitriol and the journalist is the underdog good guy, but for some reason, much of the reaction was o
353.
▲
by
vor_
14y ago
Curious if there will be accusations that Consumer Reports is the latest to fall to the bribery of the oil and automobile industries, since I was told last time that the NYT was beholden to them because the NYT sells advertising space, or s
354.
▲
Obama "Cyber Threats" Include Web Defacement, IP Theft
(theverge.com)
3 points
by
vor_
14y ago
|
0 comments
355.
▲
by
vor_
14y ago
Releasing the call logs would easily prove whether or not he was cleared in those phone calls.
356.
▲
by
vor_
14y ago
> (How he convinced the Tesla people to "clear" him at that point is a mystery that hasn't been followed up on by either party.) It's interesting that you choose that wording, that Broder "convinced" Tesla to clear him rather than Tesla
357.
▲
by
vor_
14y ago
I don't know. I don't find it impressive for a company to aggressively refute bad reviews. It comes off as insecure to me.
358.
▲
by
vor_
14y ago
The conflict is over which side has the objective facts.
359.
▲
by
vor_
14y ago
Seems like wishful thinking. It's more likely that, if they were to release early at all, it would be on a platform most likely to make them money, such as one of the consoles. However, I think it's most likely that they'll release on all t
360.
▲
by
vor_
14y ago
Mac programming in that era was a mix of assembly and Pascal.
More ›