Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
benwilber0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
benwilber0
2y ago
> Cannot wait to see Lua come back in full force. I also recently released a server for Server-Sent Events [0] that is programmable with Lua. Overall it's been a great experience. The Rust mlua-rs crate [1] is trivially easy to in
32.
▲
by
benwilber0
2y ago
I just wrote a post about this kind of stuff and why it's (almost always) nonsense. You will spend more time and effort trying to shoe-horn SQLite into a server database than you will ever get any benefits from. https://ben
33.
▲
by
benwilber0
2y ago
Continuing to build on my programmable server for Server-Sent Events. Built in Rust/Tokio, programmable with Lua. https://tinysse.com/ https://github.com/benwilber/tinysse
34.
▲
by
benwilber0
2y ago
Or like saying that C++ was somehow deficient just because NodeJS had to be created in order to script v8.
35.
▲
by
benwilber0
2y ago
I've used OpenResty extensively which is basically just nginx + luajit with a lot of additional APIs and features. The nginx-lua-module is available separately from the OpenResty distribution of nginx, so you can just install and run
36.
▲
by
benwilber0
2y ago
This is already available as an optional Lua target in mlua [0]. I recently built a programmable server for Server-Sent Events scriptable with Lua [1]. I chose Lua 5.4, but it's trivial to switch it to LuaJIT, or really any other Lua
37.
▲
by
benwilber0
2y ago
Right, obviously.
38.
▲
by
benwilber0
2y ago
JSON is a textual encoding no different than CSV. It's just that people tend to use specialized tools for encoding and decoding it instead of like ",".join(row) and row.split(",") I have seen people try to build up
39.
▲
TinySSE – A Programmable Server for Server-Sent Events in Rust and Lua
(tinysse.com)
2 points
by
benwilber0
2y ago
|
0 comments
40.
▲
by
benwilber0
2y ago
LuaJIT.org stopped publishing release tarballs [1] which caused leafo's GH actions builds [2] to suddenly stop working. The workaround was to start testing against OpenResty's distribution of LuaJIT [3] which is incompatible with
41.
▲
by
benwilber0
2y ago
For streaming in VR it has to be at least 4K per eye. So 8k in the general case, but realistically it will be higher than that. Nobody can stream 2x 4K to my Apple VR headset. I can barely get a single 4K stream to my TV!
42.
▲
by
benwilber0
2y ago
VR tech still isn't ready yet. It needs very high-res video streams which basically no internet provider/CDN can offer at scale. 40Mbps+ HEVC just isn't scalable. So the only content is whatever can be downloaded to the dev
43.
▲
by
benwilber0
2y ago
+1 to the completions/inferences in Zed. It's the first editor that I feel (mostly) confident about just tabbing-through the AI completions with minimal prompting/re-editing.
44.
▲
by
benwilber0
2y ago
You're a legend. Thanks for writing The Book. It really affected my life in a very positive way.
45.
▲
by
benwilber0
2y ago
> Increasing productivity: Safe Coding improves code correctness and developer productivity by shifting bug finding further left, before the code is even checked in. We see this shift showing up in important metrics such as rollback rate
46.
▲
by
benwilber0
2y ago
Probably the worst PK index of all time. There's a reason why it's barely ever used.
47.
▲
by
benwilber0
2y ago
Maybe? idk. Not in Postgres. The default index is a B-Tree. A hash-based index would be terrible for disk-seeking, in any case.
48.
▲
by
benwilber0
2y ago
You only need 1 index on the UUID. Instead of everywhere the UUID is referenced from other tables
49.
▲
by
benwilber0
2y ago
This is why you should _never_ make your UUID column the primary key. For one, it's enormous. Now you have to copy that 128bit int to every side of the relation. Two, in most cases it's completely random. Unless you had the foret
50.
▲
by
benwilber0
2y ago
some people want to watch the game and not just the highlights 3 hours later
51.
▲
by
benwilber0
2y ago
I had such a bad experience with Mongo DB back in 2012-2013 that I don't think I'll ever use it again, or even really consider it. But maybe it's changed and gotten better since then? Anyway. I just use Postgres.
52.
▲
by
benwilber0
2y ago
I'm not talking about trivial applications. PK lookups are easy no matter what you use. I'm talking about non-trivial applications. > > And they're always lazy, so you never really know when the N+1s are going to happ
53.
▲
by
benwilber0
2y ago
Postgres can scale to millions of users, but Rails definitely can't. Unless you're prepared to spend a ton of money.
54.
▲
by
benwilber0
2y ago
I've loved and used SQLAlchemy for many years. It got me a long way in my career. But at this point I've sworn-off using query-builders and ORMs. I just write real, hand-crafted SQL now. These "any db" abstractions j
55.
▲
by
benwilber0
2y ago
> GitHub will send a prompt to their app on your phone I lost my phone, though. There's no prompt they could send me. > I believe Google can send a similar prompt to YT or GMail apps There was no phone, anymore. No way to promp
56.
▲
by
benwilber0
2y ago
Do you think that you could get Google, or Github, to turn off your 2FA login requirement if you really needed it? Like if you lost your codes? Or never saved them in the first place?
57.
▲
by
benwilber0
2y ago
Author here. Explain to me why I should be permanently banned from Uber because I accidentally forgot the secret key to log in to my account.
58.
▲
by
benwilber0
2y ago
> let this be a lesson I forgot my backup code, so now I can just never use Uber again. Lesson learned! (you see how ridiculous this is, right?)
59.
▲
by
benwilber0
2y ago
> What if you made a new Uber account with another email address? Would you be committing a venal sin? Uber accounts are tied to phone numbers. Should I get a new phone number just because Uber's support bot is incapable of helping
60.
▲
by
benwilber0
2y ago
How many backups of my Uber codes should I have had? If I have 0, does that mean that I can never get a car to take me to the airport again?
More ›