This is how clojure does it: https://clojure.org/reference/atoms It's very costly though.
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]…
If finding couriers is the bottleneck for the restaurants then sure. I can see that as the sales pitch.
I'm sure you sound very smart saying that but in this case, there were no restaurant listings nor customer portals.
Why would the restaurant want to pay a cut from their menu prices and use this service then?
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…
They swithed to spanner.
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…
DyanmoDB is truly serverless, they give you a http endpoint and that's it, you don't have to deal with database connections.
In that case, the elephant in the room is of course Javascript ;) It can be up to 50x faster than python or ruby.
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.
You can "sprinkle" react too
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…
99% of variables are local to your function, is not like program a thousand of global variables.
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…
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 ?
That's a big problem in clojure too, were you have to write lots of javaish clojure to get decent performance.
If you take out online schema changes and sharding, what's the use case for vitess?
Except for chromium.
To Scala yes, to Elixir? wut?
At least JS can be 50X faster than Python and it has TS.
How? One could answer, "Sure, but that will take away time from current things that need attention."
No, in his benchmarks the async version should still be faster, the problem is python is just slow.
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…
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,…
This is how clojure does it: https://clojure.org/reference/atoms It's very costly though.
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]…
If finding couriers is the bottleneck for the restaurants then sure. I can see that as the sales pitch.
I'm sure you sound very smart saying that but in this case, there were no restaurant listings nor customer portals.
Why would the restaurant want to pay a cut from their menu prices and use this service then?
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…
They swithed to spanner.
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…
DyanmoDB is truly serverless, they give you a http endpoint and that's it, you don't have to deal with database connections.
In that case, the elephant in the room is of course Javascript ;) It can be up to 50x faster than python or ruby.
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.
You can "sprinkle" react too
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…
99% of variables are local to your function, is not like program a thousand of global variables.
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…
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 ?
That's a big problem in clojure too, were you have to write lots of javaish clojure to get decent performance.
If you take out online schema changes and sharding, what's the use case for vitess?
Except for chromium.
To Scala yes, to Elixir? wut?
At least JS can be 50X faster than Python and it has TS.
How? One could answer, "Sure, but that will take away time from current things that need attention."
No, in his benchmarks the async version should still be faster, the problem is python is just slow.
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…
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,…