Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
romero-jk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
by
romero-jk
5y ago
This is how clojure does it: https://clojure.org/reference/atoms It's very costly though.
2.
▲
by
romero-jk
5y ago
True but for a dynamic lang is very close[0] and if your application lives in the Java collection framework(most do) instead of using arrays the performance is even closer. [0] https://benchmarksgame-team.pages.debian.net/be
3.
▲
by
romero-jk
5y ago
If finding couriers is the bottleneck for the restaurants then sure. I can see that as the sales pitch.
4.
▲
by
romero-jk
5y ago
I'm sure you sound very smart saying that but in this case, there were no restaurant listings nor customer portals.
5.
▲
by
romero-jk
5y ago
Why would the restaurant want to pay a cut from their menu prices and use this service then?
6.
▲
by
romero-jk
5y ago
So we “scaled down” all the way to B2B. Turns out, more than a few restaurants in town would gladly handle the sales and marketing themselves and keep 100% of the order value minus fixed delivery fees. What value does this MVP offered, bo
7.
▲
by
romero-jk
5y ago
They swithed to spanner.
8.
▲
by
romero-jk
5y ago
Heavy toll on performance and is not really postgres. For the same workload pg can be up to 30x faster or more than cockroach. At some point of course, pg won't be able to keep up and the horizontal scaling of crdb will beat it.
9.
▲
by
romero-jk
5y ago
DyanmoDB is truly serverless, they give you a http endpoint and that's it, you don't have to deal with database connections.
10.
▲
by
romero-jk
5y ago
In that case, the elephant in the room is of course Javascript ;) It can be up to 50x faster than python or ruby.
11.
▲
by
romero-jk
5y ago
Sure maybe, but here we are talking about short running CLI applications not long running processes. IMO, Go is better suited at this 'js infrastructure' stuff.
12.
▲
by
romero-jk
5y ago
You can "sprinkle" react too
13.
▲
by
romero-jk
5y ago
I do prefer immutability too and think it should be the default for most programming, my original point was that for me, the trade-off of using clojure (small ecosystem) instead javascript for single server CRUD apps is not worth it but as
14.
▲
by
romero-jk
5y ago
99% of variables are local to your function, is not like program a thousand of global variables.
15.
▲
by
romero-jk
5y ago
They give me a guarantee that nobody else is going to be changing the data, somewhere deep down the call stack. I've had cases in production Python code where some seemingly unrelated code module somewhere was mutating data without my
16.
▲
by
romero-jk
5y ago
A gmail tab consumes a lot of memory for me in safari but no int chrome. Maybe it has something to do with google products ?
17.
▲
by
romero-jk
5y ago
That's a big problem in clojure too, were you have to write lots of javaish clojure to get decent performance.
18.
▲
by
romero-jk
5y ago
If you take out online schema changes and sharding, what's the use case for vitess?
19.
▲
by
romero-jk
5y ago
Except for chromium.
20.
▲
by
romero-jk
5y ago
To Scala yes, to Elixir? wut?
21.
▲
by
romero-jk
5y ago
At least JS can be 50X faster than Python and it has TS.
22.
▲
by
romero-jk
5y ago
How? One could answer, "Sure, but that will take away time from current things that need attention."
23.
▲
by
romero-jk
5y ago
No, in his benchmarks the async version should still be faster, the problem is python is just slow.
24.
▲
by
romero-jk
5y ago
I was referring to Clojure's immutable data structures, not immutability in general. My nodejs apps are just transformations pipelines of pure functions with postgres being my global mutable state. Clojure doesn't offer me anythin
25.
▲
by
romero-jk
5y ago
What do most here use Clojure for? For me, there was little value in using it over nodejs for single server CRUD apps with postgres. Some things I liked are namespace keywords, REPl integrated with your editor, immutability. But still, it f
26.
▲
by
romero-jk
5y ago
It's just a thing to make statically typed languages more dynamic. Java devs want to bring their patterns to TS/JS.