Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
smarx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
smarx
14y ago
Python's my language of choice just in terms of language features, but Lua is significantly ahead in terms of embedding and sandboxing.
122.
▲
by
smarx
14y ago
How about a static HTML site hosted on Site44: http://www.site44.com ? ;-) (That's my startup's other product.)
123.
▲
by
smarx
14y ago
There is actually UI for inspecting storage. As long as you have no more than 20 keys stored, it shows up on the left-hand side of the page, but you have to refresh the page to get the latest. My excuse for this not being discoverable and a
124.
▲
by
smarx
14y ago
* We'd be happy to be proven wrong, but we believe $4.95 converts better than $5. * We'd be happy to charge more. We have nothing to go on yet but intuition, and we think $5 is the right amount. * This is intriguing, but I think we need to
125.
▲
by
smarx
14y ago
Great catch! This should properly be implemented using leases: lease.acquire('count') local count = storage.count or 0 storage.count = count + 1 lease.release('count') return {count=count} We skipped the lease just
126.
▲
by
smarx
14y ago
I'm not sure what you mean. json.stringify {2,3,5} == '[2, 3, 5]', which is correct, isn't it? (Strictly, JSON has to always have a dictionary on the outside, but it's fairly standard to allow this.) We'll keep thinking about this, but I do
127.
▲
by
smarx
14y ago
I'm confused about your stringify suggestion... I think the primary use of json.stringify is to send that JSON to some API or back to a browser, but nobody else would be able to make sense of the ":1". Am I misunderstanding? We don't run an
128.
▲
by
smarx
14y ago
Thanks. We don't do anything special to help or hinder Lua's handling of Unicode. In general, Lua strings store bytes. This is handy when dealing with something like file uploads, but it's not always what you want for other text encodings.
129.
▲
by
smarx
14y ago
Geolua looks cool. Thanks for sharing it. It sounds like we're doing some similar things. Custom allocators are definitely the way to go to limit memory usage. We also use process-level isolation to limit the amount of execution time. We're
130.
▲
by
smarx
14y ago
(Sorry, can't reply to the real comment, too nested.) @aaronblohowiak, just because we reserve the right to shut something down doesn't mean that we will. We'll learn from real use what people actually do. We have our own ideas about what w
131.
▲
by
smarx
14y ago
I loved AppJet, and yes, I'd call it an inspiration for what we're doing. A number of people are mentioning JavaScript. We don't have any plans yet, but we're paying attention to the feedback.
132.
▲
by
smarx
14y ago
Yup, I meant "killed." (Edited, thanks.) We figure that copy/paste is a good enough way to get your scripts out, but if there's demand, it wouldn't be too hard for us to build an export. Once you create a subdomain, you own it, but you can
133.
▲
by
smarx
14y ago
It's a Python app that calls into embedded Lua.
134.
▲
by
smarx
14y ago
You can make HTTP requests, so you can call another script from your script, but the calls are synchronous and won't increase your timeout, so the original script will still get killed after ten seconds. No parallelism. What's the use case
135.
▲
by
smarx
14y ago
New VM per script request. No, we're not using LuaJIT for now.
136.
▲
by
smarx
14y ago
Our Terms ( https://www.webscript.io/terms ) do spend a little time defining "unlimited." We didn't want people to worry about it, so we went with unlimited, but as you point out "unlimited" is always a lie when finite resources are involve
137.
▲
by
smarx
14y ago
Ah, good point; thank you. We'll give this some more thought.
138.
▲
by
smarx
14y ago
The whole thing is a Python app, written with Flask. As you said, we do custom routing to map URLs to scripts, which we then load up in a Lua VM and execute with conventions for how we pass in the request and interpret the return value. For
139.
▲
by
smarx
14y ago
It's reserved for your account.
140.
▲
by
smarx
14y ago
Give it a try. :-) We kill runaway processes after 10 seconds.
141.
▲
by
smarx
14y ago
We don't plan on supporting custom domains, because we don't think people will serve up content directly from these scripts. (We think of them more as APIs, so typically invisible to end-users.) That said, my startup's other product (www.si
142.
▲
by
smarx
14y ago
Most of the sandboxing just comes from using embedded Lua and only whitelisting a small number of functions. We also do a little process-level isolation to prevent runaway processes.
143.
▲
by
smarx
14y ago
We probably need to write a FAQ for this. Until then, the short answer is that Lua is well-designed and well-understood as an embedded language (how we use it). That means it was easy and fast for us to integrate. If we get a lot of feedbac
144.
▲
by
smarx
14y ago
I'm one of Webscript's founders, and I was pleasantly surprised to see this here. We just launched this morning, and I'm happy to answer any questions.
145.
▲
by
smarx
14y ago
Seems up right now, and we (Site44) are hitting their API dozens of times a second without issues.
146.
▲
Show HN: Site44 - absurdly simple web hosting, publish from Dropbox
(site44.com)
1 points
by
smarx
14y ago
|
0 comments
147.
▲
by
smarx
14y ago
For those of you who would prefer to just save your blog (or other static website) in Dropbox instead of uploading to S3, my startup just left beta today: http://www.site44.com (Sorry for the shameless self-promotion; it's an exciting day
148.
▲
by
smarx
14y ago
Ah, thank you! I missed that.
149.
▲
by
smarx
14y ago
Would someone provide some more details around the $10 threshold for Kindle Direct Publishing? I read the page linked from the article [1], and it looked like the two options were 35% royalties or 70% royalties, and the qualifications for t
150.
▲
by
smarx
14y ago
What you're missing is that the secret isn't present. What's there is a policy, which is a way to preauthorize file uploads to S3. The policy is signed with the secret key ahead of time. It looks to me like all the fields in that form are s
More ›