Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nawitus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
361.
▲
by
nawitus
11y ago
I wasn't talking about database locks. My point was that making a database request takes a really long time relative to processing a request in the web application. Therefore the web application spends most of the time doing nothing an
362.
▲
by
nawitus
11y ago
"It has not been my experience that web applications are I/O bound using typical architectures in Python." Okay, my experience differs. Most modern web applications are relatively lightweight, and are mostly "proxies&quo
363.
▲
by
nawitus
11y ago
How does uWSGI help here? The OP recommended running 4 instances of Flask/Python, and with uWSGI you still have 4 instances. It doesn't help with I/O.
364.
▲
by
nawitus
11y ago
> But there's no reason to inflict JavaScript on yourself when you can use a language with a coherent design. JavaScript has a coherent design specially if you're using ES6+ in strict mode with a linter. Modern JavaScript is a
365.
▲
by
nawitus
11y ago
> Run one instance of your app per core you have available and use IPTables to round robin (or whatever. you can get fancier if you feel like it) to each app instance. But if you're using Flask and you have 4 cores with 4 instances,
366.
▲
by
nawitus
11y ago
> "automatic" scaling of processes/threads based on load characteristics How is this done in detail? In the case of Flask does it create new processes or threads? How quickly does it create a new Flask process/thread
367.
▲
by
nawitus
11y ago
> Like all wsgi servers, it is best to optimize towards serving a small number of concurrent requests that are fast and end fast to free up the worker pool. Well, most (or all) web applications I've worked with make database calls t
368.
▲
by
nawitus
11y ago
How do you load balance a Flask application since it's single threaded? For optimal performance shouldn't there be a single Flask instance (process?) for each request being processed? What kind of load balancers are usually used w
369.
▲
by
nawitus
11y ago
I can do that in Finland. If I have a problem I just open the website of the house management company (not sure what the official term is) and create a ticket, and someone comes in an fixes the issue. In fact, interaction with the "lan
370.
▲
by
nawitus
11y ago
Trivial applications require tens of thousands of man hours. Actually, a lot more to make it scale. By trivial I don't mean "it doesn't require a lot of work". Any application requires a lot of work. By "trivial&quo
371.
▲
by
nawitus
11y ago
>I think, frankly, that many startups need a website with a google form + some excel sheets to get started and if the thing takes off they can hire someone who can use google to bang on stackoverflow. I agree, but this is mostly true bec
372.
▲
by
nawitus
11y ago
Finland hasn't decided to switch to basic income system. It's been reported that there will be basic income trial, but even that's not certain.
373.
▲
by
nawitus
11y ago
I can easily grant "than is available", but not "will be available".
374.
▲
by
nawitus
11y ago
I read that as containing even future machines. I would agree that the current supercomputers can't reach a human-level AI using AIXI-approximation.
375.
▲
by
nawitus
11y ago
From the conclusions of http://arxiv.org/abs/cs/0004001 : "All tasks which require intelligence to be solved can naturally be formulated as a maximization of some expected utility in the framework of agents.
376.
▲
by
nawitus
11y ago
As stated above, I believe that a sufficiently close approximation of AIXI is an AI that can do everything a person can.
377.
▲
by
nawitus
11y ago
I believe that a sufficiently close approximation of AIXI is an AI that can do everything a person can.
378.
▲
by
nawitus
11y ago
> Until we solve this problem, throwing all the machine power in the world at it cannot create an AI that can do everything a person can. I think this is disproved by approximating AIXI: https://en.wikipedia.org/wiki/
379.
▲
by
nawitus
11y ago
You can buy electricity with pricing like that in Finland, it's generally cheaper if you're using significant amounts of electricity. (Although I'm not completely sure if it's minute by minute or hourly rates).
380.
▲
by
nawitus
11y ago
Not strictly related to wind power in Texas, but reminded me how at the same time in Finland a few authorities recommended consumers to actually limit their use of eletricity "for the common good". The main cause was increase in w
381.
▲
by
nawitus
11y ago
Are you suggesting going back to waterfall development?
382.
▲
by
nawitus
11y ago
I believe Microsoft worked to get Node.js supported on Windows.
383.
▲
by
nawitus
11y ago
Each package should strip tests and documentation from the package. Of course, many don't..
384.
▲
by
nawitus
11y ago
Language specific package managers seem to actually work in real life and are cross platform, e.g. npm. But I'm not aware of anything for e.g. C++ which would offer the features of npm (mainly installing dependencies with a single comm
385.
▲
by
nawitus
11y ago
Symlinks would make copying and archiving the node_modules structure more problematic.
386.
▲
by
nawitus
11y ago
Lambdas make code really easy to read compared to making the reader skip around the code. In addition, it reduces boilerplate code and requires less time to be spent on naming functions. Of course, it all depends on situation. Simple logic
387.
▲
by
nawitus
11y ago
The argument that stack traces are easier to debug when functions are named is always brought up when talking about the issue of naming functions. However, I don't quite understand why it's such a big issue. Whenever I get a stack
388.
▲
by
nawitus
11y ago
icheckmovies is a reasonably successful website, where the core feature is lists.
389.
▲
by
nawitus
11y ago
There are "language designers" who still code, for example Anders Hejlsberg: https://github.com/ahejlsberg
390.
▲
by
nawitus
11y ago
But it's easy to perfectly prepare tofu.
More ›