Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
progval
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
571.
▲
by
progval
5y ago
> It's still possible if you use uBlock, or enable JS only when you need it. Possible, but painful. Take HN's official search engine, for example: https://hn.algolia.com/ I open it. "This page will only wo
572.
▲
by
progval
5y ago
> But it's not Pydantic the problem, but the validation that you apply to your data. Indeed, this kind of validation is usually based on 'isinstance', which is really slow in Python, because you often need to call it many
573.
▲
by
progval
5y ago
This would be the last step predicted by this 2014 (!) talk: https://www.destroyallsoftware.com/talks/the-birth-and-death... At the time it seemed unrealistic; asm.js was only just invented
574.
▲
by
progval
5y ago
Some people even built one in Lego http://rubens.ens-lyon.fr/
575.
▲
by
progval
5y ago
You implicitly need a schema in JSON too: it's the API documentation. Then, every implementer in a statically typed language needs to translate the JSON format into structures in their own language. And this is impossible to automate,
576.
▲
by
progval
5y ago
You declare which one it should be in the schema (used to generate the struct and its (de)serialization code) > XML is a markup language. It's in the name even. It can be used for markup, but isn't limited to that.
577.
▲
by
progval
5y ago
Depends on the language. XML maps nicely to C/C++/Java/Rust/... structures, that you can generate from a schema at compile time. Dealing with arbitrarily typed arrays and objects is painful in some languages because you
578.
▲
by
progval
5y ago
lower in the linked thread: > Telemetry has nothing to do with this, it just happens to be one of the first services with H3 load balancer.
579.
▲
by
progval
5y ago
For anyone who does not know what this is about: git.io is (was?) an URL shortener owned and operated by GitHub, which was popular to create short links to GitHub commits/files/...
580.
▲
Git.io no longer accepts new URLs
(github.blog)
4 points
by
progval
5y ago
|
2 comments
581.
▲
by
progval
5y ago
Sure, but it's less convenient to use.
582.
▲
by
progval
5y ago
That's why I install from curated package repositories (eg. Debian) as much as possible, and encourage users of my own software to do so as well.
583.
▲
by
progval
5y ago
> In rust an int is an int And Rust ints can overflow. It's a tradeoff. >> Version pinning is a bad practice because it slows deployment of security updates. > How is that not true for stdlibs? Because, if without pinning,
584.
▲
by
progval
5y ago
> An extensive stdlib ensures decent performance: https://stackoverflow.com/questions/31548680/why-is-python-3... This example is about a language issue, not the stdlib. And it's only slower on purely comp
585.
▲
by
progval
5y ago
> There are modules but they have timestamp You need a client and bouncer (or server, if you connect directly) that supports this extension: https://ircv3.net/specs/extensions/server-time > and limit proble
586.
▲
by
progval
5y ago
> I'm not sure IRC apps can deal with this already. It would be nice to have some update to the IRC RFC. They can do it with some help from the IRC server: https://ircv3.net/specs/extensions/chathistory +
587.
▲
by
progval
5y ago
Yes of course. I meant this protocol extension is needed to get the history while disconnected from the network. And it can be fast enough to work smoothly with scroll/PgUp, I successfully did this with Gamja + https://githu
588.
▲
by
progval
5y ago
> UX is entirely dependent on the client. Not entirely. Some features cannot be implemented without help from the protocol, like this extension to fetch history: https://ircv3.net/specs/extensions/chathistory
589.
▲
by
progval
5y ago
Why? It doesn't make any difference for users. These days, IRC federation is only used to scale horizontally, and sadly, IRC networks doesn't need to scale over 100k concurrent users anymore.
590.
▲
by
progval
5y ago
There is the flagship ergo.chat network, and a bunch of small networks. A total of 118 networks according to https://www.ircstats.org/servers (based on scanning the IPv4 address space on ports 6667 and 6697. Note that, desp
591.
▲
by
progval
5y ago
> I suppose that's a reflection of the state of the IRC ecosystem, which is stagnant and slowly dying. I see it as mature rather than stagnant. I like my client to remain mostly the same over years so it doesn't disrupt me ever
592.
▲
Mastodon Project Governance and Transparency
(github.com)
2 points
by
progval
5y ago
|
0 comments
593.
▲
by
progval
5y ago
Kind of, but still much larger than pills: https://en.wikipedia.org/wiki/Soylent_(meal_replacement)
594.
▲
by
progval
5y ago
From your link: > WTF-8 must not be used to represent text in a file format or for transmission over the Internet.
595.
▲
by
progval
5y ago
As URLs are provided by random users, a malicious server could send an infinite file to DoS the bot, so there has to be a limit.
596.
▲
Ask HN: Why does YouTube have 200kB of JavaScript before the title tag?
1 points
by
progval
5y ago
|
3 comments
597.
▲
by
progval
5y ago
This isn't a problem intrinsic to IRC; Ergo solved it: https://github.com/ergochat/ergo/blob/master/docs/USERGUIDE....
598.
▲
by
progval
5y ago
Discord was first popular with gamers because it offered good voice chat; and this popularity drew in other communities.
599.
▲
by
progval
5y ago
FWIW, you can also add type annotations for namedtuples, with a syntax similar to data classes: https://docs.python.org/3/library/typing.html#typing.NamedTu... You can even type dictionaries this way: https:/
600.
▲
by
progval
5y ago
Matrix does it like this as well. Servers have to serialize an object as JSON (specified as Python code), then add the signature to the object and serialize it again to send it on the network. https://spec.matrix.org/v1.1&#x
More ›