Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
justsomeuser
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
by
justsomeuser
3y ago
How long does it take to resume a VM?
2.
▲
by
justsomeuser
3y ago
I don’t think it is that serious of an issue: - The API is likely to be simple (JSON in and out, or something similar). Those devs already know they domain well. - The Rust compiler enforces only valid programs, so you won’t get runtime err
3.
▲
by
justsomeuser
4y ago
How do you manage changing state overtime? Do you re-render the whole template? Can templates be nested?
4.
▲
by
justsomeuser
4y ago
> What does this prove about SQL being inferior to other languages My point is that I think it is inferior for general application/business logic programs . For queries that filter large datasets to small result sets, SQL is probab
5.
▲
by
justsomeuser
4y ago
> Type systems Sure SQL has types, but they are checked at runtime, not compile time. Also you cannot define function input and return arguments with types that are checked before you run the program. > compilers If you want efficient
6.
▲
by
justsomeuser
4y ago
I think general programming languages are better for general programs than SQL. Specifically they have: Type systems, compilers, debuggers, text editors, package managers, C FFI etc. But I agree that having the data and the program in the s
7.
▲
by
justsomeuser
4y ago
Of course. This is just a simplification that I find useful. Software is less like traditional engineering as there are no "right" ways to do things.
8.
▲
by
justsomeuser
4y ago
I sometimes simplify social interactions by dividing them into two sets: friendly-social and engineering. In friendly-social environments, it is all about avoiding overly negative topics. It is not lying, but just keeping the conversation t
9.
▲
by
justsomeuser
4y ago
You are right, I did not realise it was the compiled code. I thought it was the comparable hand written JS.
10.
▲
by
justsomeuser
4y ago
I think it is more to do with the so called "Object–relational impedance mismatch", which I guess is related to schema migrations. NoSQL would still have migration issues as the types change over time, much like the table schemas.
11.
▲
by
justsomeuser
4y ago
Under "Everything is an Expression": items = (() => { const results = []; for (const item of items) { if (item.length) { results.push(item.toUpperCase()); } el
12.
▲
by
justsomeuser
4y ago
I think CSS and the domain of laying out things in 2d (and responding to state changes) with code is actually inherently complex, so which ever layout system you use is going to have a steep learning curve. Many of the newer CSS features pr
13.
▲
by
justsomeuser
4y ago
I like the way you use a combination of <textarea> for editing and <pre> for DOM elements. I actually have come to the same solution for a transcription web app. I have found that <textarea> manipulation from JS is not rea
14.
▲
by
justsomeuser
4y ago
My notes on this: - <dialog>.showModal() is an indirect API to `top-layer`. - `top-layer` is kind of like a sibling to the root <html>, elements can be placed into the top-layer from any position in the existing DOM (it is lik
15.
▲
by
justsomeuser
4y ago
Yes, I write those parts myself.
16.
▲
by
justsomeuser
4y ago
Sorry I do not, although I have been meaning to publish the "skeleton" template repo's I have locally. There are two template repos I use: `web-ui` and `server` The both have a `sh` dir with common commands in .sh files (watc
17.
▲
by
justsomeuser
4y ago
Just a normal create-user/login form. Or Firebase Auth if Google and other sign in's need to be supported.
18.
▲
by
justsomeuser
4y ago
- Server: Node.js + SQLite I know JS very well, so writing HTTP handlers is quite fast. Node runs on V8, which is probably the fastest runtime for dynamic code. SQLite makes development easier as it’s just a file, gives you ACID. - Frontend
19.
▲
by
justsomeuser
4y ago
I agree. It seems strange that they would make an official version and then not add it to the official JS package manager. It seems like Chrome is paying them for the “deliverable” of a JS version, but the spec did not include “npm install
20.
▲
by
justsomeuser
4y ago
Being able to `npm install` this for a frontend app would be very useful.
21.
▲
by
justsomeuser
4y ago
This will not work as SQLite triggers only work for writes within the same process; a trigger cannot execute code in another process. But you could use triggers to write to a table (as any process that writes will run that trigger), and the
22.
▲
by
justsomeuser
4y ago
No no no. He is betting on Association For Geographic Information
23.
▲
by
justsomeuser
4y ago
I do not think "JSON does not support incremental parsing, HTTP does" is the reason why JSON-RPC is less popular. Most typed languages give you two options for parsing JSON: - 1. General JSON values (hash maps of JSON scalar value
24.
▲
by
justsomeuser
4y ago
I think Elon is betting on AGI, and is merely bootstrapping the initial delivery systems.
25.
▲
by
justsomeuser
4y ago
This does seem strange, as you can read and write whole files to/from the user's file system once they give your app permission. Adding those API's to read/write parts of the file is the next logical step. But it looks
26.
▲
by
justsomeuser
4y ago
It would be nice if OPFS (Origin Private File System) allowed reading/writing to an actual SQLite file on the users disk. At the moment, as I understand it, the OPFS virtual disk is completely isolated from the users disk. This means y
27.
▲
by
justsomeuser
4y ago
I agree. For public interfaces/types or global variables descriptive names are important. But for temp vars in short functions or closures, I also use single letter vars because I want to see what is being done to the variables rather
28.
▲
by
justsomeuser
4y ago
I like type systems as you can design with types and check things tie together before even running the code. This gives you very fast iteration cycles compared to CMD-R refreshing the browser/code. Some issues with TS are: - There is n
29.
▲
by
justsomeuser
4y ago
This is true. To be honest I was only considering the benefits to the client - if there are 10m client's polling this could mean a lot of server resources for Stripe. But an indexed last_update_ts could take less than 1ms to query, HTT
30.
▲
by
justsomeuser
4y ago
It is biased as it is arguing in favour of events over webhooks (and may be missing some of the benefits of webhooks). But I feel it is quite accurate. Which points do you disagree with?
More ›