Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
randrews
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
151.
▲
by
randrews
15y ago
Ah, I see, that's a different thing than I've been doing. I have a bridge for Cocoa that lets Lua post and observe NSNotifications, and so I have a stub class in ObjC that can call back into Lua in response to receiving a notification. I'm
152.
▲
by
randrews
15y ago
Could you expand some on "no callbacks from C to Lua"? I have C code calling Lua code all the time, but I'm also not using LuaJIT, so I don't know if that's a limitation of it.
153.
▲
by
randrews
15y ago
After a very cursory scan, it appears that he's shadowing a lot of standard Lua functions to provide his own versions, like a replacement for ipairs that checks an __ipairs metamethod first, that sort of thing. It doesn't actually look th
154.
▲
by
randrews
15y ago
I really have to wonder what he's doing in his C functions that the stack model is a problem. Most of mine are very simple: pop some values, maybe read some table fields or pcall a function, then do whatever the C function actually does, an
155.
▲
by
randrews
15y ago
I wrote a comment about this on Reddit and got downvoted to oblivion, don't know why, but here it is: I have a PS3. Last night I unplugged it to move it from one room to another. Most of the games I have are downloaded from PSN, and I found
156.
▲
by
randrews
15y ago
If you enjoy puzzle games and programming I would strongly urge you to look into learning to crack. I'm not very good at it (it usually takes me a couple days to break into lightly-protected Mac software) but it's way more fun and challengi
157.
▲
by
randrews
16y ago
That's the core of what I was going to do, but I want to put on top of it something like Bundler, where I can specify which libraries I want (and which ones depend on other ones) and it will build it for me. Although I think the only one I
158.
▲
by
randrews
16y ago
Yes, definitely. The problem I'm running into is that the people writing the module systems are thinking in terms of running it standalone. I want a way to get a bunch of Lua libraries and cram them into one thing I can easily embed and mak
159.
▲
by
randrews
16y ago
It's more complication in design than implementation though, and doing it in Lisp instead of C won't help that any. Once you decide what you actually want to write, it's not a whole lot harder to write it in C than Lisp. It's harder, but it
160.
▲
by
randrews
16y ago
I've been thinking about things I could build that would fix that, but that's sort of how we got into this in the first place. :-)
161.
▲
by
randrews
16y ago
I see his point about how everyone rolling their own thing is bad for the Lisp community, but he's got a kind of ridiculous view of C: "Making Scheme object-oriented is a sophomore homework assignment. On the other hand, adding object orien
162.
▲
by
randrews
16y ago
> Good games, they say, are like art: engaging players deeply and emotionally (not sure how Grand Theft Auto fits in here). A lot of people have had very emotional reactions to Grand Theft Auto... At the risk of oversimplifying somethin
163.
▲
ScreenDuck - Simple Mac screenshot sharing utility
(screenduck.com)
2 points
by
randrews
16y ago
|
0 comments
164.
▲
by
randrews
16y ago
Different people are interested in different things. If a student just does not care about math, they're going to devote a lot more of their effort to their science classes and do the bare minimum to pass in Algebra.
165.
▲
by
randrews
16y ago
I used to use TinyGrab all the time, it was a pretty indispensable part of my workflow, which is why, after nearly a week of it being dead, I got fed up and wrote my own: http://dl.dropbox.com/u/651972/ScreenDuck-0.1a.zip It's obviously v
166.
▲
by
randrews
16y ago
The way the article shows is essentially calculating: (30 + 6) * (20 + 4) Which is great and all, but I think it would make more sense to do this: (24 * 6) * 1 + (24 * 3) * 10 This is a lot closer to how machines actually do multiplication,
167.
▲
by
randrews
16y ago
Oh, I'm sure they will. The only reason Apple's gcc is still the recommended version is that nobody cared enough before to make an alternative one. Now that saving five bucks is involved, people will move mountains to make it happen. :)
168.
▲
by
randrews
16y ago
Yes, the more I think about it the less sense it makes. Putting it on the App Store seems perfectly normal, but charging money for something that used to be free, even a token amount, is a really stupid thing to do. $5 is nearly as bad as $
169.
▲
by
randrews
16y ago
Xcode 3 appears to still be a free download. Xcode 4 is free if you're a registered developer (which costs $99/year), or $5 from the app store. gcc is obviously still free, if you get it from anyone other than Apple.
170.
▲
by
randrews
16y ago
Safari on iOS does client-side storage, you could let someone read a stored book offline. It would make pirating them a little easier though. Not much easier because it's not exactly hard now, Calibre has a plugin that imports them and brea
171.
▲
by
randrews
16y ago
I didn't think of that but it's a good idea: charge $5 for the app (or whatever). People who have already bought it don't lose anything, people who do buy the app don't cost Amazon any money. Or maybe Amazon's margin is over 30% and they ju
172.
▲
by
randrews
16y ago
Well, this invalidates what I thought Amazon should do: remove all purchasing of books from the Kindle app and make it only able to download and read books bought from the website (which it would not link to). Apple's now saying, if you sel
173.
▲
by
randrews
16y ago
You're right, and I think that's why it's a very optimistic question to expect. The current math textbooks have questions that are ridiculous and pointless for everyone, whether they're interested in math or not. Why expect future CS textbo
174.
▲
by
randrews
16y ago
it's kind of my point that it would make them bad questions. :) I think expecting a public school textbook to ask questions that require thought is really optimistic.
175.
▲
by
randrews
16y ago
That's actually a reasonable question. What's a lot more likely: "Here are fifteen for loop headers. For each one, write how many times the loop body will execute."
176.
▲
by
randrews
16y ago
Actually Swing works pretty much the same way, which is why I liked it. What I couldn't stand was stuff like Qt, which wants to generate / pre-process a lot of code. I've decided my rule is, I want to either do everything in code (like GTK)
177.
▲
by
randrews
16y ago
Actually they do that too... I was surprised the last time I saw a newly-bought PC laptop at the number of random stickers all over it for the video card, OS, whatever.
178.
▲
by
randrews
16y ago
It's always been my rule. :) If I've had to put groceries (or whatever) on a credit card, I'm not also buying a video game that month.
179.
▲
by
randrews
16y ago
You can buy things you don't need, and you can buy things with money you don't have, but doing both at the same time is a really bad idea.
180.
▲
by
randrews
16y ago
I would roll it back, if I cared at all about the site. This all happened about a year ago, I'm only pointing it out now because it's relevant to this thread. It's a really poorly-thought-out feature: new users who can't write coherently ge
More ›