37,790 karma · joined Sep 7, 2019 (7y ago) · 9,208 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
I agree, hence the surprise!
Although parent explicitly calls out "cloud applications" so I'm guessing online has something to do with it.
And in the context of online/offline, it wouldn't matter if it's internet connected or not, using controlled input components with state changes going through a deep hierarchy would introduce that sort of delay no matter if you're online or offline.
comment 3y ago · link · parent
With the API, you can basically customize the session ranging from providing batshit bananas replies (by setting high temperature) or almost deterministic replies (by setting low temperature) with personality controlled by the system prompt, so you can make it "friendlier", "less formal" or anything else.
It is still as slow via the API as via ChatGPT though, which kind of sucks when you're using it for longer passages. I do wish it was just about 100% faster.
comment 3y ago · link · parent
If the application you're using (the one(s) you're referring to when you say "cloud applications") is sending the key input to the backend and waits to render it client-side until it received a response, it's doing something horribly wrong and if that's how they write things, you probably want to avoid that for a multitude of reasons. Please name and shame though, so others can avoid it too :)
Same goes for Electron-based applications, there is no reason they'd block showing the text you inputted, and if they just use <input/> without doing anything egregious, you really shouldn't be able to type faster than characters appearing on the screen, something is really, really wrong then, and I don't think it's because of Electron.
comment 3y ago · link · parent
It's such a marginal difference when you consider real-life applications built with either express or Fastify though. Seldom is the actual bottleneck which HTTP library you use (unless you're at a really, really, really big scale), and more about how you structure your code, database and general architecture. I can count on one hand the number of times I've had to care deeply about the HTTP stack in order to optimize something, while I've probably had to optimize 100s of web products over the years, all done without touching the HTTP parts at all.
> It doesn't. That's the whole point. Software is always evolving and I doubt it's even close to complete. There hasn't been meaningful updates to Express in a long time. Why do people use it and/or promote it as a standard?
How to handle HTTP requests kind of doesn't. HTTP 1.1 continues to work, and will continue to be sufficient for at least 90% of all the use cases on the web for a long time.
I know that the JS community generally suffers from "If it hasn't been updated in the last year, it's probably broken and not modern enough" syndrome, but some software actually end up being "finished" and good enough for the task at hand. What improvements could you actually add to express without breaking the API interface that millions of applications depend on? Sometimes stability is wanted and needed, and that's how you get mature software. Who wants to rewrite their application and architecture every time some library you happen to use decides to "improve" it?
comment 3y ago · link · parent
> NodeJS is a FOSS project under the Linux foundation
Deno is not maintained by a non-profit organization, and Deno Land Inc are unlikely to want to let someone else control their project, that'd be kind of suicidal.
> is not driven by profit
The organization who maintain Deno is explicitly for-profit, meaning it has to be driven by profit. If they give the project to the Linux Foundation, I guess that could change, but again, unlikely they'd do something like that.
> NodeJS learned from the whole Npm Inc history and tries to remain more independent from for-profit companies
Deno arguably did learn from that story and did package management differently. They didn't avoid the whole for-profit angle, as again, the maintainers are working for a incorporation.
> Contributors tired of slow pace of NodeJS
As far as I can tell as an outsider, Deno seems to be moving forward at a decent speed and I haven't seen any noise in their community about a possible fork because of slow development pace.
comment 3y ago · link · parent
Assuming you're in the US (as HN is biased in that way, and you're using HN as a source), the unemployment rate seems to hover around ~3.5% for the last year, and it was ~6% two years ago. https://www.bls.gov/news.release/pdf/empsit.pdf
comment 3y ago · link · parent
Hopefully, NodeJS learned from the whole Npm Inc history and tries to remain more independent from for-profit companies.
The whole io.js thing was a very different thing than Deno. Contributors tired of slow pace of NodeJS forked NodeJS into another FOSS version, with no for-profit motives, which meant it could eventually be merged back once the people behind the two projects reconciled.
comment 3y ago · link · parent
expressjs at this point is battle-tested, minimal, easy to understand (both in usage and internals) and have a huge community still. It's very mature and does what it does well.
comment 3y ago · link · parent
Not sure HTTP is the best approach to the suggested method. Since you control both ends, there are surely better protocols to use, like QUIC or something similar (or just straight up UDP).
comment 3y ago · link · parent
Isn't "modern anime classics" a bit of a oxymoron? Things generally don't become classics until a while after. Lots of examples of things not really being in the mind of the mainstream until it long died.
comment 3y ago · link · parent
On that topic, probably one of the top-3 features from Clojure I miss in other languages, is having the option of making comments being a part of the language itself so everything that works on the code (linters, evaluation, syntax highlighting, etc) works in the comment as well. The `comment` macro really is a godsend in disguise as it's awfully simple implementation-wise. Its cousin `#_` is also a great tool. See https://clojuredocs.org/clojure.core/comment for more examples
1607.
Ask HN: Did GitHub remove instructions on how to checkout PRs locally?
1 points · by capableweb · 3y ago · 1 comment
comment 3y ago · link · parent
Game looking a bit boring? Improve the lightning, instantly better
Boring photos of people? Consider how the light traverses the scene you're capturing, and they become much better
Bathroom looking dull? One well placed lamp can change it entirely.
Want to make cool professional videos? Purchase one nice production lamp and you're like 90% there already.
comment 3y ago · link · parent
Remind me, how many domains do you go through again when authenticating with online version of Outlook? Last time I looked, they send you through something like 4 different domains. And emails from Microsoft seemingly are on purpose sent from as many different domains as possible.
comment 3y ago · link · parent
comment 3y ago · link · parent
Here is the latest ones:
files blank comment code
refs/tags/v21.02.4|Sun Oct 9 19:13:29 2022 +0200
SUM: 6152 105231 202581 1095273
refs/tags/v22.03.1|Sun Oct 9 19:32:19 2022 +0200
SUM: 4942 92892 159322 758218
refs/tags/v22.03.2|Sat Oct 15 14:45:57 2022 +0200
SUM: 4989 94174 160996 761805
refs/tags/v21.02.5|Sat Oct 15 15:02:44 2022 +0200
SUM: 6154 105246 202621 1095314
refs/tags/v22.03.3|Tue Jan 3 22:03:37 2023 +0100
SUM: 5030 94497 161559 768700
refs/tags/v22.03.4|Sun Apr 9 23:35:19 2023 +0100
SUM: 5054 94718 162335 769994
refs/tags/v21.02.6|Sun Apr 9 23:38:36 2023 +0100
SUM: 6283 106307 206300 1107999
Command used: $ git for-each-ref --sort=creatordate --format '%(refname)|%(creatordate)' refs/tags | while read line ; do echo $line; cloc --git $(echo $line | cut -d '|' -f 1) --processes 32 --quiet | grep SUM ; donecomment 3y ago · link · parent
For example, if I don't like what Microsoft is doing with Windows and I name my own OS WindowsPro while it being a Linux distribution, I'm clearly trying to mislead people into believing it's something it's not.
comment 3y ago · link · parent
https://orbixhotglass.com/product-category/prince-ruperts-dr...
Least expensive: 500 USD
Most expensive: 100,000 USD
Most of them are below 3,500 USD, but damn, pretty high prices for something like that, although I guess it makes sense considering how long time they probably spent on making them and coming up with the process.